[flang-commits] [clang] [flang] [flang] Add nsw flag to do-variable increment with a new option (PR #91579)
Slava Zakharin via flang-commits
flang-commits at lists.llvm.org
Mon May 13 10:48:26 PDT 2024
================
@@ -34,5 +34,9 @@ ENUM_LOWERINGOPT(NoPPCNativeVecElemOrder, unsigned, 1, 0)
/// On by default.
ENUM_LOWERINGOPT(Underscoring, unsigned, 1, 1)
+/// If true, add nsw flags to arithmetic operations for integer.
+/// Off by default.
+ENUM_LOWERINGOPT(NoSignedWrap, unsigned, 1, 0)
----------------
vzakhari wrote:
`NoSignedWrap` sounds too generic for an option that only forces setting `NSW` for the loop variables' increments. Please consider renaming or at least make the scope of `NSW` assignment clear in the comment above.
https://github.com/llvm/llvm-project/pull/91579
More information about the flang-commits
mailing list