Skip to content

Commit 92a516e

Browse files
committed
Drop explicit addrspace(0)
1 parent 3ab2f88 commit 92a516e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: llvm/test/CodeGen/AMDGPU/fold-gep-offset.ll

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
; FIXME the offset here should not be folded: if %p points to the beginning of
2020
; scratch or LDS and %i is -1, a folded offset crashes the program.
21-
define i32 @flat_offset_maybe_oob(ptr addrspace(0) %p, i32 %i) {
21+
define i32 @flat_offset_maybe_oob(ptr %p, i32 %i) {
2222
; GFX90A-LABEL: flat_offset_maybe_oob:
2323
; GFX90A: ; %bb.0:
2424
; GFX90A-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
@@ -81,8 +81,8 @@ define i32 @flat_offset_maybe_oob(ptr addrspace(0) %p, i32 %i) {
8181
; GFX12-NEXT: s_wait_alu 0xfffd
8282
; GFX12-NEXT: s_setpc_b64 s[30:31]
8383
%idx = add nsw i32 %i, 3
84-
%arrayidx = getelementptr inbounds i32, ptr addrspace(0) %p, i32 %idx
85-
%l = load i32, ptr addrspace(0) %arrayidx
84+
%arrayidx = getelementptr inbounds i32, ptr %p, i32 %idx
85+
%l = load i32, ptr %arrayidx
8686
ret i32 %l
8787
}
8888

0 commit comments

Comments
 (0)