[llvm] [NFC][AMDGPU] Remove redundant code in `AMDGPUSubtarget::getWavesPerEU` (PR #155201)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 24 21:06:08 PDT 2025
https://github.com/shiltian created https://github.com/llvm/llvm-project/pull/155201
None
>From 4035b8f30f9ce74bb9ba7ebb457a8002f7d96bee Mon Sep 17 00:00:00 2001
From: Shilei Tian <i at tianshilei.me>
Date: Mon, 25 Aug 2025 00:05:13 -0400
Subject: [PATCH] [NFC][AMDGPU] Remove redundant code in
`AMDGPUSubtarget::getWavesPerEU`
---
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
index d095fc6cf9549..7668294e2ff30 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp
@@ -209,11 +209,7 @@ std::pair<unsigned, unsigned>
AMDGPUSubtarget::getWavesPerEU(const Function &F) const {
// Default/requested minimum/maximum flat work group sizes.
std::pair<unsigned, unsigned> FlatWorkGroupSizes = getFlatWorkGroupSizes(F);
- // Minimum number of bytes allocated in the LDS.
- unsigned LDSBytes = AMDGPU::getIntegerPairAttribute(F, "amdgpu-lds-size",
- {0, UINT32_MAX}, true)
- .first;
- return getWavesPerEU(FlatWorkGroupSizes, LDSBytes, F);
+ return getWavesPerEU(F, FlatWorkGroupSizes);
}
std::pair<unsigned, unsigned> AMDGPUSubtarget::getWavesPerEU(
More information about the llvm-commits
mailing list