[llvm] [LoopInterchange] Improve some tests (NFC) (PR #156426)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 2 02:40:49 PDT 2025


================
@@ -65,7 +65,7 @@ for.j.body:
   %add.2 = fadd float %add.1, %d
   %add.3 = fadd float %add.2, %e
   %add.4 = fadd float %add.3, %f
-  %a.1.index = getelementptr nuw inbounds [256 x [256 x float]], ptr @A, i64 %j, i64 %i
+  %a.1.index = getelementptr nuw inbounds [256 x [256 x float]], ptr @A, i64 0, i64 %j, i64 %i
----------------
nikic wrote:

FYI the canonical form (since a few days ago) is now:
```suggestion
  %a.1.index = getelementptr nuw inbounds [256 x float], ptr @A, i64 %j, i64 %i
```
Might make sense to update tests to use the form without leading zero.

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


More information about the llvm-commits mailing list