[flang-commits] [flang] [llvm] [VPlan] Expand WidenInt inductions with nuw/nsw (PR #163538)

Luke Lau via flang-commits flang-commits at lists.llvm.org
Fri Oct 24 03:05:13 PDT 2025


================
@@ -7549,16 +7549,20 @@ createWidenInductionRecipes(PHINode *Phi, Instruction *PhiOrTrunc,
   assert(SE.isLoopInvariant(IndDesc.getStep(), &OrigLoop) &&
          "step must be loop invariant");
 
+  // It is always safe to copy over the NoWrap flags. In particular, when
----------------
lukel97 wrote:

```suggestion
  // It is always safe to copy over the NoWrap or fast math flags. In particular, when
```

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


More information about the flang-commits mailing list