[llvm] [VPlan] Preserve WideIVStep wrap-flags (PR #191284)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 17 03:18:42 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;
----------------
artagnon wrote:
> and can remove AddFlags variable below?
Ah, but we need it in the canonical case?
https://github.com/llvm/llvm-project/pull/191284
More information about the llvm-commits
mailing list