Skip to content

Commit 6626f36

Browse files
committed
Fix a unit test mistake
1 parent 64fe614 commit 6626f36

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/test/Transforms/DeadStoreElimination/inter-procedural.ll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,14 +329,12 @@ declare void @read_global(ptr nocapture noundef initializes((0, 2))) nounwind
329329
define i16 @global_var_alias() {
330330
; CHECK-LABEL: @global_var_alias(
331331
; CHECK-NEXT: store i16 0, ptr @g, align 4
332-
; CHECK-NEXT: [[G_ADDR:%.*]] = getelementptr i8, ptr @g, i64 1
333-
; CHECK-NEXT: call void @read_global(ptr [[G_ADDR]])
332+
; CHECK-NEXT: call void @read_global(ptr @g)
334333
; CHECK-NEXT: [[L:%.*]] = load i16, ptr @g, align 2
335334
; CHECK-NEXT: ret i16 [[L]]
336335
;
337336
store i16 0, ptr @g, align 4
338-
%g_addr = getelementptr i8, ptr @g, i64 1
339-
call void @read_global(ptr %g_addr)
337+
call void @read_global(ptr @g)
340338
%l = load i16, ptr @g
341339
ret i16 %l
342340
}

0 commit comments

Comments
 (0)