[llvm] [FuncSpec] Improve accounting of specialization codesize growth (PR #113448)
Hari Limaye via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 28 04:38:35 PDT 2024
================
@@ -964,7 +970,7 @@ bool FunctionSpecializer::findSpecializations(Function *F, unsigned FuncSize,
if (LatencySavings < MinLatencySavings * FuncSize / 100)
return false;
// Maximum codesize growth.
- if (FunctionGrowth[F] / FuncSize > MaxCodeSizeGrowth)
+ if ((FunctionGrowth[F] + CodeSizeCost) / FuncSize > MaxCodeSizeGrowth)
----------------
hazzlim wrote:
Done
https://github.com/llvm/llvm-project/pull/113448
More information about the llvm-commits
mailing list