[clang] [openmp] [Clang][OpenMP] Fix tile/unroll on iterator- and foreach-loops. (PR #91459)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Tue May 21 10:47:55 PDT 2024


================
@@ -156,9 +156,9 @@ extern "C" void body(...) {}
 // IR-EMPTY:
 // IR-NEXT:  [[FOR_INC]]:
 // IR-NEXT:    %[[TMP34:.+]] = load i32, ptr %[[DOTTILE_0_IV_I]], align 4
-// IR-NEXT:    %[[INC:.+]] = add nsw i32 %[[TMP34]], 1
+// IR-NEXT:    %[[INC:.+]] = add i32 %[[TMP34]], 1
----------------
alexey-bataev wrote:

Why nsw is dropped? Another question - can be nuw added?

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


More information about the cfe-commits mailing list