[llvm] [NFC][AMDGPU] Avoid storing through a poison pointer in function-args.ll test (PR #215999)

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 13 03:05:07 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-amdgpu

Author: Arseniy Obolenskiy (aobolensk)

<details>
<summary>Changes</summary>

Address post-merge comment: https://github.com/llvm/llvm-project/pull/215970 

---
Full diff: https://github.com/llvm/llvm-project/pull/215999.diff


1 Files Affected:

- (modified) llvm/test/CodeGen/AMDGPU/function-args.ll (+3-1) 


``````````diff
diff --git a/llvm/test/CodeGen/AMDGPU/function-args.ll b/llvm/test/CodeGen/AMDGPU/function-args.ll
index 26f91183948ad..89bd3b592c5de 100644
--- a/llvm/test/CodeGen/AMDGPU/function-args.ll
+++ b/llvm/test/CodeGen/AMDGPU/function-args.ll
@@ -4436,6 +4436,7 @@ define void @void_func_empty_struct_i32({} %arg0, i32 %arg1) #0 {
 ; CIGFX89-LABEL: void_func_empty_struct_i32:
 ; CIGFX89:       ; %bb.0:
 ; CIGFX89-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
+; CIGFX89-NEXT:    s_mov_b64 s[4:5], 0
 ; CIGFX89-NEXT:    s_mov_b32 s7, 0xf000
 ; CIGFX89-NEXT:    s_mov_b32 s6, -1
 ; CIGFX89-NEXT:    buffer_store_dword v0, off, s[4:7], 0
@@ -4445,11 +4446,12 @@ define void @void_func_empty_struct_i32({} %arg0, i32 %arg1) #0 {
 ; GFX11-LABEL: void_func_empty_struct_i32:
 ; GFX11:       ; %bb.0:
 ; GFX11-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
+; GFX11-NEXT:    s_mov_b64 s[0:1], 0
 ; GFX11-NEXT:    s_mov_b32 s3, 0x31016000
 ; GFX11-NEXT:    s_mov_b32 s2, -1
 ; GFX11-NEXT:    buffer_store_b32 v0, off, s[0:3], 0
 ; GFX11-NEXT:    s_setpc_b64 s[30:31]
-  store i32 %arg1, ptr addrspace(1) poison
+  store i32 %arg1, ptr addrspace(1) null
   ret void
 }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/215999


More information about the llvm-commits mailing list