[llvm] [DA] Test AddRecs are nsw before strong SIV test (PR #183421)

Ryotaro Kasuga via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 3 23:52:47 PST 2026


================
@@ -8,34 +8,32 @@
 
 ; C Code
 ;
-;;  for (long int i = 0; i < n; i++) {
-;;    for (long int j = 0; j < n; j++) {
-;;      for (long int k = 0; k < n; k++)
+;;  for (long int i = 0; i < 1000; i++) {
+;;    for (long int j = 0; j < 1000; j++) {
+;;      for (long int k = 0; k < 1000; k++)
 ;;        A[i][j][k] = i;
-;;      for (long int k = 0; k < n; k++)
+;;      for (long int k = 0; k < 1000; k++)
 ;;        temp = A[i + 3][j + 2][k + 1];
 ;;    }
 ;;  }
----------------
kasuga-fj wrote:

I think this change doesn't make much sense. It's unsafe to fuse these loops in the first place. If you'd like to change the loop trip counts, also consider adjusting them (or the type arguments of the GEPs) and removing `-da-disable-delinearization-checks` option.

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


More information about the llvm-commits mailing list