[flang-commits] [flang] [llvm] [VPlan] Fix wrap-flags on WidenInduction unroll (PR #187710)
Luke Lau via flang-commits
flang-commits at lists.llvm.org
Mon Mar 23 04:20:16 PDT 2026
================
@@ -214,12 +219,10 @@ void UnrollState::unrollWidenInductionByUF(
AddFlags = GEPNoWrapFlags::none();
} else if (IVTy->isFloatingPointTy()) {
AddOpc = ID.getInductionOpcode();
- AddFlags = Flags; // FMF flags
+ AddFlags = FMF;
} else {
AddOpc = Instruction::Add;
- AddFlags = VPIRFlags::getDefaultFlags(AddOpc);
- if (cast<VPWidenIntOrFpInductionRecipe>(IV)->isCanonical())
- AddFlags = VPIRFlags::WrapFlagsTy(/*NUW=*/true, /*NSW=*/false);
----------------
lukel97 wrote:
Yeah, this will cause verification failures on EXPENSIVE_CHECKS builds because isKnownMonotonic will now fail
https://github.com/llvm/llvm-project/pull/187710
More information about the flang-commits
mailing list