https://github.com/jmmartinez created 
https://github.com/llvm/llvm-project/pull/181133

`getLDSSize` becomes unused after removing `getWavesPerEU` from the attributor 
in https://github.com/llvm/llvm-project/pull/181131

From de05a0157af82eef71aee5d86ea01de8fdfa4765 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Juan=20Manuel=20Martinez=20Caama=C3=B1o?=
 <[email protected]>
Date: Thu, 12 Feb 2026 13:37:19 +0100
Subject: [PATCH] [NFC][AMDGPU] Remove unused `getLDSSize`

---
 llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp 
b/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
index 9bd8e97619ce1..b86a4ea7f384d 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
@@ -240,14 +240,6 @@ class AMDGPUInformationCache : public InformationCache {
     return Status;
   }
 
-  /// Returns the minimum amount of LDS space used by a workgroup running
-  /// function \p F.
-  static unsigned getLDSSize(const Function &F) {
-    return AMDGPU::getIntegerPairAttribute(F, "amdgpu-lds-size",
-                                           {0, UINT32_MAX}, true)
-        .first;
-  }
-
   /// Get the constant access bitmap for \p C.
   uint8_t getConstantAccess(const Constant *C,
                             SmallPtrSetImpl<const Constant *> &Visited) {

_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to