[llvm] [VPlan] Introduce VPCumulativeIVPHIRecipe for variable-length stepping (PR #177114)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 21 01:13:05 PST 2026
================
@@ -567,6 +586,8 @@ static void addInitialSkeleton(VPlan &Plan, Type *InductionTy, DebugLoc IVDL,
{VectorPhiR, VectorPhiR->getOperand(0)}, VectorPhiR->getDebugLoc());
cast<VPIRPhi>(&ScalarPhiR)->addOperand(ResumePhiR);
}
+
+ addCumulativeIVRecipes(Plan, HeaderVPBB, LatchVPBB, InductionTy, IVDL);
----------------
lukel97 wrote:
Is there a particular reason why we always add the cumulative IV recipe for every VPlan? I would have thought we would only need to add it in the cases where we need to convert to a variably stepping loop region.
https://github.com/llvm/llvm-project/pull/177114
More information about the llvm-commits
mailing list