[llvm] [AMDGPU] Move attributes to the bottom of a test file (NFC) (PR #219470)
Frederik Harwath via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 28 06:27:01 PDT 2026
https://github.com/frederik-h created https://github.com/llvm/llvm-project/pull/219470
This was requested in post merge review of #219172.
>From 6eb100d90bd28d7dce5da9cf385486b4e5f1daae Mon Sep 17 00:00:00 2001
From: Frederik Harwath <fharwath at amd.com>
Date: Fri, 28 Aug 2026 09:21:37 -0400
Subject: [PATCH] [AMDGPU] Move attributes in test case
This was requested in post merge review of #219172.
---
.../CodeGen/AMDGPU/promote-alloca-lds-granularity-limit.ll | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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..00aa7ed524ead 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
@@ -35,3 +34,5 @@ define amdgpu_kernel void @test(ptr addrspace(1) %out, i32 %idx) #0 {
store i8 %load, ptr addrspace(1) %out, align 1
ret void
}
+
+attributes #0 = { "amdgpu-flat-work-group-size"="64,64" }
More information about the llvm-commits
mailing list