[llvm] [polly] [SCEV] Refactor SCEV flags, in preparation to extend (NFC) (PR #225179)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 05:45:14 PDT 2026


================
@@ -1357,11 +1357,11 @@ static const SCEV *getPreStartForExtend(const SCEVAddRecExpr *AR,
       SE->getAddExpr((SE->*GetExtendExpr)(PreStart, WideTy, Depth),
                      (SE->*GetExtendExpr)(Step, WideTy, Depth));
   if ((SE->*GetExtendExpr)(Start, WideTy, Depth) == OperandExtendedStart) {
-    if (PreAR && any(AR->getNoWrapFlags(WrapType))) {
+    if (PreAR && any(AR->getFlags(WrapType))) {
----------------
david-arm wrote:

Similar to my comment earlier about `setNoWrapFlags` would it be useful to keep a `getNoWrapFlags` that only returned the wrap-flags bitfield? That way you wouldn't need to change the `any` logic here when you add the exact flag.

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


More information about the llvm-commits mailing list