[llvm] [VPlan] Create epilogue minimum iteration check in VPlan. (PR #157545)

via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 21 14:05:49 PDT 2025


================
@@ -9813,6 +9724,98 @@ static void fixScalarResumeValuesFromBypass(BasicBlock *BypassBlock, Loop *L,
   }
 }
 
+/// Connect the epilogue vector loop generated for \p Plan to the main vector
+/// loop, updating branches from the iteration and runtime checks, as well as
+/// updating various phis. \p InstsToMove contains instructions that need to be
+/// moved to the vector preheader.
+static void connectEpilogueVectorLoop(
+    VPlan &Plan, Loop *L, EpilogueLoopVectorizationInfo &EPI, DominatorTree *DT,
----------------
ayalz wrote:

Should `Plan` be renamed `EpiPlan` and/or commented as such?

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


More information about the llvm-commits mailing list