[llvm] [FuncSpec] Update MinFunctionSize logic (PR #112711)
Momchil Velikov via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 17 07:13:06 PDT 2024
================
@@ -641,12 +641,17 @@ bool FunctionSpecializer::run() {
Metrics.analyzeBasicBlock(&BB, GetTTI(F), EphValues);
}
+ // When specializing literal constants is enabled, always require functions
+ // to be larger than MinFunctionSize, to prevent excessive specialization.
+ bool RequireMinSize =
----------------
momchil-velikov wrote:
May add "const" for a little bit of extra self-documentation. Or not.
https://github.com/llvm/llvm-project/pull/112711
More information about the llvm-commits
mailing list