[llvm] 4fef5e4 - [NFC][AMDGPU] Remove unused `getLDSSize` (#181133)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 12 05:13:55 PST 2026
Author: Juan Manuel Martinez CaamaƱo
Date: 2026-02-12T13:13:50Z
New Revision: 4fef5e4b4c3c0855a37c813e73da6ef641cb638a
URL: https://github.com/llvm/llvm-project/commit/4fef5e4b4c3c0855a37c813e73da6ef641cb638a
DIFF: https://github.com/llvm/llvm-project/commit/4fef5e4b4c3c0855a37c813e73da6ef641cb638a.diff
LOG: [NFC][AMDGPU] Remove unused `getLDSSize` (#181133)
`getLDSSize` becomes unused after removing `getWavesPerEU` from the
attributor in https://github.com/llvm/llvm-project/pull/181131
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
Removed:
################################################################################
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) {
More information about the llvm-commits
mailing list