[llvm] [FuncSpec] Improve accounting of specialization codesize growth (PR #113448)
Alexandros Lamprineas via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 28 05:29:58 PDT 2024
================
@@ -924,16 +932,14 @@ bool FunctionSpecializer::findSpecializations(Function *F, unsigned FuncSize,
}
CodeSize += Visitor.getCodeSizeSavingsFromPendingPHIs();
+ unsigned CodeSizeSavings = getCostValue(CodeSize);
+ unsigned CodeSizeCost = FuncSize - CodeSizeSavings;
+
----------------
labrinea wrote:
Nevermind, I was wrong since it's being used outside of the lambda.
https://github.com/llvm/llvm-project/pull/113448
More information about the llvm-commits
mailing list