mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
[MLGO] Fix build break as result of new InstructionCost (D91174)
This commit is contained in:
parent
506848f563
commit
44ff9e7909
@ -130,8 +130,8 @@ size_t getSize(Function &F, TargetTransformInfo &TTI) {
|
||||
size_t Ret = 0;
|
||||
for (const auto &BB : F)
|
||||
for (const auto &I : BB)
|
||||
Ret += TTI.getInstructionCost(
|
||||
&I, TargetTransformInfo::TargetCostKind::TCK_CodeSize);
|
||||
Ret += *(TTI.getInstructionCost(
|
||||
&I, TargetTransformInfo::TargetCostKind::TCK_CodeSize).getValue());
|
||||
return Ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user