[llvm] [VPlan] Delay adding canonical IV increment. (PR #82270)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 11 07:18:21 PST 2024
================
@@ -1618,30 +1578,26 @@ bool VPlanTransforms::tryAddExplicitVectorLength(
auto *VPEVL = Builder.createNaryOp(VPInstruction::ExplicitVectorLength, AVL,
DebugLoc());
- auto *CanonicalIVIncrement =
- cast<VPInstruction>(CanonicalIVPHI->getBackedgeValue());
VPSingleDefRecipe *OpVPEVL = VPEVL;
+ VPRecipeBase *LatchTerm = Latch->getTerminator();
----------------
ayalz wrote:
Term may be ambiguous. Spell out `LatchTerminator` or rename `LatchEnd` or `LatchBranch` - currently expecting (and replacing) a BranchOnCount?
https://github.com/llvm/llvm-project/pull/82270
More information about the llvm-commits
mailing list