[llvm] [VPlan] Endow DerivedIV with VPIRFlags (PR #205908)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 2 05:41:21 PDT 2026


================
@@ -683,7 +683,8 @@ createScalarIVSteps(VPlan &Plan, InductionDescriptor::InductionKind Kind,
   VPBasicBlock *HeaderVPBB = LoopRegion->getEntryBasicBlock();
   VPValue *CanonicalIV = LoopRegion->getCanonicalIV();
   VPSingleDefRecipe *BaseIV =
-      Builder.createDerivedIV(Kind, FPBinOp, StartV, CanonicalIV, Step);
+      Builder.createDerivedIV(Kind, FPBinOp, StartV, CanonicalIV, Step,
+                              {LoopRegion->hasCanonicalIVNUW(), false});
----------------
artagnon wrote:

Oops, there was a thinko there: hopefully fixed now?

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


More information about the llvm-commits mailing list