[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:52 PDT 2025


================
@@ -2744,9 +2764,7 @@ void VPlanTransforms::addExplicitVectorLength(
       OpVPEVL, CanIVTy, I32Ty, CanonicalIVIncrement->getDebugLoc());
 
   auto *NextEVLIV = Builder.createOverflowingOp(
-      Instruction::Add, {OpVPEVL, EVLPhi},
-      {CanonicalIVIncrement->hasNoUnsignedWrap(),
-       CanonicalIVIncrement->hasNoSignedWrap()},
+      Instruction::Add, {OpVPEVL, EVLPhi}, {CanIVInfo.HasNUW, false},
----------------
ayalz wrote:

```suggestion
      Instruction::Add, {OpVPEVL, EVLPhi}, {CanIVInfo.HasNUW, /* HasNSW */ false},
```

https://github.com/llvm/llvm-project/pull/156262


More information about the llvm-commits mailing list