1
0
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:
Mircea Trofin 2020-12-11 20:28:39 -08:00
parent 506848f563
commit 44ff9e7909

View File

@ -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;
}