[llvm-branch-commits] [llvm] [NFC][AMDGPU] Store through a global pointer in recursive search llvm-split tests (PR #233260)

Dmitry Sidorov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Oct 25 05:29:08 PDT 2026


https://github.com/MrSidims updated https://github.com/llvm/llvm-project/pull/233260

>From 78ff5e5685e7ecba0364e7ccc2d3b6d393de7b90 Mon Sep 17 00:00:00 2001
From: Dmitry Sidorov <Dmitry.Sidorov at amd.com>
Date: Fri, 9 Oct 2026 11:20:46 +0200
Subject: [PATCH] [NFC][AMDGPU] Store through a global pointer in recursive
 search llvm-split tests

Their function sizes then do not depend on the cost of flat stores.
---
 .../llvm-split/AMDGPU/recursive-search-2.ll   | 34 +++++++++----------
 .../llvm-split/AMDGPU/recursive-search-8.ll   | 34 +++++++++----------
 2 files changed, 34 insertions(+), 34 deletions(-)

diff --git a/llvm/test/tools/llvm-split/AMDGPU/recursive-search-2.ll b/llvm/test/tools/llvm-split/AMDGPU/recursive-search-2.ll
index bf16cdd08d22bf..452c7acbcfd49e 100644
--- a/llvm/test/tools/llvm-split/AMDGPU/recursive-search-2.ll
+++ b/llvm/test/tools/llvm-split/AMDGPU/recursive-search-2.ll
@@ -53,11 +53,11 @@
 ; SPLIT5-CHECK4: define amdgpu_kernel void @ABC()
 
 define amdgpu_kernel void @A() {
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
   call void @HelperA()
   ret void
 }
@@ -69,10 +69,10 @@ define internal void @HelperA() {
 }
 
 define amdgpu_kernel void @B() {
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
   call void @HelperB()
   ret void
 }
@@ -85,14 +85,14 @@ define internal void @HelperB() {
 }
 
 define amdgpu_kernel void @C() {
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
   call void @HelperC()
   ret void
 }
diff --git a/llvm/test/tools/llvm-split/AMDGPU/recursive-search-8.ll b/llvm/test/tools/llvm-split/AMDGPU/recursive-search-8.ll
index be78815d5945b6..4bc3a73b028d60 100644
--- a/llvm/test/tools/llvm-split/AMDGPU/recursive-search-8.ll
+++ b/llvm/test/tools/llvm-split/AMDGPU/recursive-search-8.ll
@@ -52,11 +52,11 @@
 ; SPLIT5-CHECK4: define amdgpu_kernel void @ABC()
 
 define amdgpu_kernel void @A() {
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
   call void @HelperA()
   ret void
 }
@@ -68,10 +68,10 @@ define internal void @HelperA() {
 }
 
 define amdgpu_kernel void @B() {
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
   call void @HelperB()
   ret void
 }
@@ -84,14 +84,14 @@ define internal void @HelperB() {
 }
 
 define amdgpu_kernel void @C() {
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
-  store volatile i64 42, ptr null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
+  store volatile i64 42, ptr addrspace(1) null
   call void @HelperC()
   ret void
 }



More information about the llvm-branch-commits mailing list