[llvm] 38e4607 - [DA] Fix test missing the leading zero in the GEP (NFC) (#147479)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 8 02:37:37 PDT 2025


Author: Ryotaro Kasuga
Date: 2025-07-08T18:37:33+09:00
New Revision: 38e4607e023fe2cf803a56da5ab80fa9341c5819

URL: https://github.com/llvm/llvm-project/commit/38e4607e023fe2cf803a56da5ab80fa9341c5819
DIFF: https://github.com/llvm/llvm-project/commit/38e4607e023fe2cf803a56da5ab80fa9341c5819.diff

LOG: [DA] Fix test missing the leading zero in the GEP (NFC) (#147479)

The IR wasn't as intended, but the issue in DA persists unchanged.

Added: 
    

Modified: 
    llvm/test/Analysis/DependenceAnalysis/DifferentOffsets.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Analysis/DependenceAnalysis/DifferentOffsets.ll b/llvm/test/Analysis/DependenceAnalysis/DifferentOffsets.ll
index 1f8fac3087bff..05df105ef79c2 100644
--- a/llvm/test/Analysis/DependenceAnalysis/DifferentOffsets.ll
+++ b/llvm/test/Analysis/DependenceAnalysis/DifferentOffsets.ll
@@ -175,9 +175,9 @@ for.j:
 
 for.k:
   %k = phi i64 [ 0, %for.j ], [ %k.inc, %for.k.inc ]
-  %idx0 = getelementptr inbounds [256 x [256 x [256 x i64]]], ptr %A, i64 %i, i64 %j, i64 %k
+  %idx0 = getelementptr inbounds [256 x [256 x [256 x i64]]], ptr %A, i64 0, i64 %i, i64 %j, i64 %k
   store i32 1, ptr %idx0
-  %idx1 = getelementptr inbounds [256 x [256 x [256 x i32]]], ptr %A, i64 %i, i64 %j, i64 %k
+  %idx1 = getelementptr inbounds [256 x [256 x [256 x i32]]], ptr %A, i64 0, i64 %i, i64 %j, i64 %k
   store i32 1, ptr %idx1
   br label %for.k.inc
 


        


More information about the llvm-commits mailing list