[llvm] [VPlan] Make canonical IV part of the region (PR #156262)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 15 07:00:20 PST 2026
================
@@ -2774,13 +2779,15 @@ void VPlanTransforms::addExplicitVectorLength(
VPRegionBlock *LoopRegion = Plan.getVectorLoopRegion();
VPBasicBlock *Header = LoopRegion->getEntryBasicBlock();
- auto *CanonicalIVPHI = LoopRegion->getCanonicalIV();
- auto *CanIVTy = LoopRegion->getCanonicalIVType();
- VPValue *StartV = CanonicalIVPHI->getStartValue();
+ auto *CanonicalIV = LoopRegion->getCanonicalIV();
+ auto &CanIVInfo = LoopRegion->getCanonicalIVInfo();
+ auto *CanIVTy = CanIVInfo.getType();
+ VPValue *StartV = Plan.getOrAddLiveIn(ConstantInt::getNullValue(CanIVTy));
----------------
fhahn wrote:
updated, thanks
https://github.com/llvm/llvm-project/pull/156262
More information about the llvm-commits
mailing list