[llvm] [LoopVectorize] Further improve cost model for early exit loops (PR #126235)
    David Sherwood via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Feb 27 01:34:48 PST 2025
    
    
  
================
@@ -10077,19 +10077,46 @@ static void checkMixedPrecision(Loop *L, OptimizationRemarkEmitter *ORE) {
   }
 }
 
-static bool areRuntimeChecksProfitable(GeneratedRTChecks &Checks,
-                                       VectorizationFactor &VF, Loop *L,
-                                       PredicatedScalarEvolution &PSE,
-                                       ScalarEpilogueLowering SEL,
-                                       std::optional<unsigned> VScale) {
+static InstructionCost calculateEarlyExitCost(LoopVectorizationCostModel &CM,
----------------
david-arm wrote:
Done
https://github.com/llvm/llvm-project/pull/126235
    
    
More information about the llvm-commits
mailing list