[llvm] 229c466 - [AMDGPU] Test fixup
Christudasan Devadasan via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 15 10:07:12 PST 2022
Author: Christudasan Devadasan
Date: 2022-12-15T23:36:55+05:30
New Revision: 229c466bc8fbb44326fee7f3b11038aaa8f5f369
URL: https://github.com/llvm/llvm-project/commit/229c466bc8fbb44326fee7f3b11038aaa8f5f369
DIFF: https://github.com/llvm/llvm-project/commit/229c466bc8fbb44326fee7f3b11038aaa8f5f369.diff
LOG: [AMDGPU] Test fixup
Changing cast_lds_gv into a kernel function to
lower the LDS usage appropriately. The LDS lowering
is currently won't happen for orphan device functions.
Added:
Modified:
llvm/test/CodeGen/AMDGPU/addrspacecast-known-non-null.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/AMDGPU/addrspacecast-known-non-null.ll b/llvm/test/CodeGen/AMDGPU/addrspacecast-known-non-null.ll
index 95d35c3811b9a..7cf56489155e0 100644
--- a/llvm/test/CodeGen/AMDGPU/addrspacecast-known-non-null.ll
+++ b/llvm/test/CodeGen/AMDGPU/addrspacecast-known-non-null.ll
@@ -25,10 +25,11 @@ define void @cast_alloca() {
; CHECK-LABEL: {{^}}cast_lds_gv:
; CHECK: s_mov_b64 s[{{[0-9]+}}:[[HIREG:[0-9]+]]], src_shared_base
+; CHECK: v_mov_b32_e32 v0, 0
; CHECK: v_mov_b32_e32 v1, s[[HIREG]]
; CHECK-NOT: v0
; CHECK-NOT: v1
-define void @cast_lds_gv() {
+define amdgpu_kernel void @cast_lds_gv() {
%cast = addrspacecast ptr addrspace(3) @lds to ptr
call void @flat_user(ptr %cast)
ret void
More information about the llvm-commits
mailing list