[llvm] acb72fd - [AMDGPU] Change promote-alloca-lds-granularity-limit.ll test to use inline attributes (NFC) (#219470)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 28 08:30:51 PDT 2026


Author: Frederik Harwath
Date: 2026-08-28T17:30:46+02:00
New Revision: acb72fd0059344a0ecac7e165caeaa07078d072e

URL: https://github.com/llvm/llvm-project/commit/acb72fd0059344a0ecac7e165caeaa07078d072e
DIFF: https://github.com/llvm/llvm-project/commit/acb72fd0059344a0ecac7e165caeaa07078d072e.diff

LOG: [AMDGPU] Change promote-alloca-lds-granularity-limit.ll test to use inline attributes (NFC) (#219470)

This was requested in post merge review of #219172.

Added: 
    

Modified: 
    llvm/test/CodeGen/AMDGPU/promote-alloca-lds-granularity-limit.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/AMDGPU/promote-alloca-lds-granularity-limit.ll b/llvm/test/CodeGen/AMDGPU/promote-alloca-lds-granularity-limit.ll
index 5e1bd118ab504..19e6f474b4828 100644
--- a/llvm/test/CodeGen/AMDGPU/promote-alloca-lds-granularity-limit.ll
+++ b/llvm/test/CodeGen/AMDGPU/promote-alloca-lds-granularity-limit.ll
@@ -1,7 +1,6 @@
 ; RUN: opt -S -mtriple=amdgpu9.50-amd-amdhsa -passes=amdgpu-promote-alloca -disable-promote-alloca-to-vector < %s | FileCheck %s
 
 @lds_12800 = internal addrspace(3) global [12800 x i8] poison, align 16
-attributes #0 = { "amdgpu-flat-work-group-size"="64,64" }
 
 ; This is a regression test for a bug in getMaxLocalMemSizeWithWaveCount
 ; which did not round to the LDS allocation block size, leading
@@ -23,7 +22,7 @@ attributes #0 = { "amdgpu-flat-work-group-size"="64,64" }
 ; CHECK-LABEL: @test(
 ; CHECK: %stack = alloca [10 x i8], align 1, addrspace(5)
 
-define amdgpu_kernel void @test(ptr addrspace(1) %out, i32 %idx) #0 {
+define amdgpu_kernel void @test(ptr addrspace(1) %out, i32 %idx) "amdgpu-flat-work-group-size"="64,64" {
 
   %stack = alloca [10 x i8], align 1, addrspace(5)
   %lds.ptr = getelementptr inbounds [12800 x i8], ptr addrspace(3) @lds_12800, i32 0, i32 0


        


More information about the llvm-commits mailing list