[llvm] cdbc5ca - AMDGPU: Remove leftover test for old promote-alloca subtarget feature (#206014)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 26 03:08:34 PDT 2026
Author: Matt Arsenault
Date: 2026-06-26T10:08:30Z
New Revision: cdbc5ca57bbae92cb0bc7b8c884cdf9bd2a5871f
URL: https://github.com/llvm/llvm-project/commit/cdbc5ca57bbae92cb0bc7b8c884cdf9bd2a5871f
DIFF: https://github.com/llvm/llvm-project/commit/cdbc5ca57bbae92cb0bc7b8c884cdf9bd2a5871f.diff
LOG: AMDGPU: Remove leftover test for old promote-alloca subtarget feature (#206014)
This feature was removed in a56993a694ed02775285b9fe0e23fce8346491c9.
The test used to have a pair testing the enabled and disabled case,
and there's no point leaving the enabled partner.
Added:
Modified:
llvm/test/CodeGen/AMDGPU/target-cpu.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/AMDGPU/target-cpu.ll b/llvm/test/CodeGen/AMDGPU/target-cpu.ll
index 710bc25678acf..2e6a3aee4be63 100644
--- a/llvm/test/CodeGen/AMDGPU/target-cpu.ll
+++ b/llvm/test/CodeGen/AMDGPU/target-cpu.ll
@@ -72,18 +72,6 @@ define amdgpu_kernel void @target_fiji() #4 {
ret void
}
-; CHECK-LABEL: {{^}}promote_alloca_enabled:
-; CHECK: ds_read_b32
-define amdgpu_kernel void @promote_alloca_enabled(ptr addrspace(1) nocapture %out, ptr addrspace(1) nocapture %in) #5 {
-entry:
- %stack = alloca [5 x i32], align 4, addrspace(5)
- %tmp = load i32, ptr addrspace(1) %in, align 4
- %arrayidx1 = getelementptr inbounds [5 x i32], ptr addrspace(5) %stack, i32 0, i32 %tmp
- %load = load i32, ptr addrspace(5) %arrayidx1
- store i32 %load, ptr addrspace(1) %out
- ret void
-}
-
attributes #0 = { nounwind }
attributes #1 = { nounwind readnone }
attributes #2 = { nounwind "target-cpu"="tahiti" }
More information about the llvm-commits
mailing list