[llvm] [VPlan] Make canonical IV part of the region (PR #156262)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 8 15:29:54 PDT 2025
================
@@ -1224,6 +1259,11 @@ VPlan *VPlan::duplicate() {
// else NewTripCount will be created and inserted into Old2NewVPValues when
// TripCount is cloned. In any case NewPlan->TripCount is updated below.
+ if (auto *LoopRegion = getVectorLoopRegion()) {
+ Old2NewVPValues[LoopRegion->getCanonicalIV()] =
+ NewPlan->getVectorLoopRegion()->getCanonicalIV();
+ }
----------------
ayalz wrote:
```suggestion
if (auto *CanIV = getCanonicalIV())
Old2NewVPValues[CanIV] = NewPlan->getCanonicalIV();
```
?
https://github.com/llvm/llvm-project/pull/156262
More information about the llvm-commits
mailing list