[llvm-branch-commits] [llvm] Patch 5: [LV] create predicated(tail-folded) vplans. (PR #207815)

Sander de Smalen via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jul 16 06:27:18 PDT 2026


================
@@ -5536,32 +5538,35 @@ void LoopVectorizationPlanner::plan(
 
     // After making sure that we can get valid results of computeMaxVF, make
     // sure that tail-folding for the epilogue loop still valid.
-    if (EpilogueTailFoldingCM->computeMaxVF(UserVF, UserIC) &&
-        EpilogueTailFoldingCM->foldTailByMasking()) {
-      EnabledCMs.push_back(&*EpilogueTailFoldingCM);
+    MaxFactorsTF = EpilogueTailFoldingCM->computeMaxVF(UserVF, UserIC);
----------------
sdesmalen-arm wrote:

I don't think this should be using `UserVF/UserIC`, as those are only relevant to the default plan (for the main vector loop)

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


More information about the llvm-branch-commits mailing list