[llvm] [polly] [SCEV] Move NoWrapFlags definition outside SCEV scope, use for SCEVUse. (PR #190199)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 4 05:48:24 PDT 2026
================
@@ -1871,8 +1871,7 @@ const SCEV *ScalarEvolution::getZeroExtendExprImpl(const SCEV *Op, Type *Ty,
const SCEV *SResidual =
getAddRecExpr(getConstant(C - D), Step, L, AR->getNoWrapFlags());
const SCEV *SZExtR = getZeroExtendExpr(SResidual, Ty, Depth + 1);
- return getAddExpr(SZExtD, SZExtR,
- (SCEV::NoWrapFlags)(SCEV::FlagNSW | SCEV::FlagNUW),
+ return getAddExpr(SZExtD, SZExtR, (SCEV::FlagNSW | SCEV::FlagNUW),
----------------
fhahn wrote:
should be fixed, thanks
https://github.com/llvm/llvm-project/pull/190199
More information about the llvm-commits
mailing list