[llvm] [LV] codegen for tail-folded epilogue loop (PR #208764)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 19 14:32:26 PDT 2026
================
@@ -5987,8 +6015,8 @@ DenseMap<const SCEV *, Value *> LoopVectorizationPlanner::executePlan(
assert((OrigLoop->getUniqueLatchExitBlock() || RequiresScalarEpilogue) &&
"loops not exiting via the latch without required epilogue?");
VPlanTransforms::materializeVectorTripCount(
- BestVPlan, VectorPH, HasTailFolded, RequiresScalarEpilogue,
- &BestVPlan.getVFxUF(), MaxRuntimeStep);
+ BestVPlan, VectorPH, (CM.foldTailByMasking() || IsEpilogueTFEnabled),
----------------
fhahn wrote:
Should be enough to check if the plan has its tail folded via `Plan.hasTailFolded`?
https://github.com/llvm/llvm-project/pull/208764
More information about the llvm-commits
mailing list