[llvm] [VPlan] Preserve WideIVStep wrap-flags (PR #191284)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 17 03:15:46 PDT 2026
================
@@ -180,22 +180,17 @@ void UnrollState::unrollWidenInductionByUF(
IV->getParent()->getEnclosingLoopRegion()->getSinglePredecessor());
Type *IVTy = TypeInfo.inferScalarType(IV);
auto &ID = IV->getInductionDescriptor();
- FastMathFlags FMF;
- VPIRFlags::WrapFlagsTy WrapFlags(false, false);
- if (auto *IntOrFPInd = dyn_cast<VPWidenIntOrFpInductionRecipe>(IV)) {
- if (IntOrFPInd->hasFastMathFlags())
- FMF = IntOrFPInd->getFastMathFlags();
- if (IntOrFPInd->hasNoWrapFlags())
- WrapFlags = IntOrFPInd->getNoWrapFlags();
- }
+ VPIRFlags Flags;
----------------
fhahn wrote:
```suggestion
VPIRFlags IVFlags;
```
and can remove `AddFlags` variable below?
https://github.com/llvm/llvm-project/pull/191284
More information about the llvm-commits
mailing list