[llvm] [LoopVectorize] Further improve cost model for early exit loops (PR #126235)
    Florian Hahn via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Mar 10 03:31:22 PDT 2025
    
    
  
================
@@ -10659,8 +10699,8 @@ bool LoopVectorizePass::processLoop(Loop *L) {
     bool ForceVectorization =
         Hints.getForce() == LoopVectorizeHints::FK_Enabled;
     if (!ForceVectorization &&
-        !areRuntimeChecksProfitable(Checks, VF, L, PSE, SEL,
-                                    CM.getVScaleForTuning())) {
+        !isOutsideLoopWorkProfitable(Checks, VF, CM, PSE,
----------------
fhahn wrote:
Adding here was my thinking, to avoid spreading further references of the legacy CM.
https://github.com/llvm/llvm-project/pull/126235
    
    
More information about the llvm-commits
mailing list