Skip to content

Commit 38e4607

Browse files
authored
[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.
1 parent 9d11bd0 commit 38e4607

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/test/Analysis/DependenceAnalysis/DifferentOffsets.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,9 @@ for.j:
175175

176176
for.k:
177177
%k = phi i64 [ 0, %for.j ], [ %k.inc, %for.k.inc ]
178-
%idx0 = getelementptr inbounds [256 x [256 x [256 x i64]]], ptr %A, i64 %i, i64 %j, i64 %k
178+
%idx0 = getelementptr inbounds [256 x [256 x [256 x i64]]], ptr %A, i64 0, i64 %i, i64 %j, i64 %k
179179
store i32 1, ptr %idx0
180-
%idx1 = getelementptr inbounds [256 x [256 x [256 x i32]]], ptr %A, i64 %i, i64 %j, i64 %k
180+
%idx1 = getelementptr inbounds [256 x [256 x [256 x i32]]], ptr %A, i64 0, i64 %i, i64 %j, i64 %k
181181
store i32 1, ptr %idx1
182182
br label %for.k.inc
183183

0 commit comments

Comments
 (0)