[llvm] [FuncSpec] Update MinFunctionSize logic (PR #112711)

Hari Limaye via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 17 07:18:10 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 =
----------------
hazzlim wrote:

Good point - done :) 

https://github.com/llvm/llvm-project/pull/112711


More information about the llvm-commits mailing list