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

Arseniy Obolenskiy via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 13 02:58:08 PDT 2026


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

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

>From bb9596bb97109e44f7465049cdd2240c7f480481 Mon Sep 17 00:00:00 2001
From: Arseniy Obolenskiy <arseniy.obolenskiy at amd.com>
Date: Thu, 13 Aug 2026 11:56:24 +0200
Subject: [PATCH] [NFC][AMDGPU] Avoid storing through a poison pointer in
 function-args.ll test

---
 llvm/test/CodeGen/AMDGPU/function-args.ll | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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
 }
 



More information about the llvm-commits mailing list