[llvm] [VPlan] Delay adding canonical IV increment and exit branches. (PR #82270)
    Florian Hahn via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Oct  9 14:16:02 PDT 2024
    
    
  
================
@@ -7428,6 +7428,14 @@ LoopVectorizationPlanner::executePlan(
       "expanded SCEVs to reuse can only be used during epilogue vectorization");
   (void)IsEpilogueVectorization;
 
+  TailFoldingStyle Style =
+      CM.getTailFoldingStyle(!isIndvarOverflowCheckKnownFalse(&CM, BestVF));
+  // When not folding the tail, we know that the induction increment will not
+  // overflow.
----------------
fhahn wrote:
The current code just moves the existing logic. Put up https://github.com/llvm/llvm-project/pull/111758 to improve this separately.
https://github.com/llvm/llvm-project/pull/82270
    
    
More information about the llvm-commits
mailing list