[llvm-branch-commits] [llvm] [NFC][AMDGPU] Remove unused `getLDSSize` (PR #181133)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Feb 12 04:45:26 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-backend-amdgpu
Author: Juan Manuel Martinez CaamaƱo (jmmartinez)
<details>
<summary>Changes</summary>
`getLDSSize` becomes unused after removing `getWavesPerEU` from the attributor in https://github.com/llvm/llvm-project/pull/181131
---
Full diff: https://github.com/llvm/llvm-project/pull/181133.diff
1 Files Affected:
- (modified) llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp (-8)
``````````diff
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) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/181133
More information about the llvm-branch-commits
mailing list