[llvm] 0c70489 - [NFC][AMDGPU] Remove unused/unimplemented `getWavesPerEU` variants (#181131)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 12 05:07:41 PST 2026
Author: Juan Manuel Martinez CaamaƱo
Date: 2026-02-12T14:07:35+01:00
New Revision: 0c70489533fde533ef632333acf589ea522913b8
URL: https://github.com/llvm/llvm-project/commit/0c70489533fde533ef632333acf589ea522913b8
DIFF: https://github.com/llvm/llvm-project/commit/0c70489533fde533ef632333acf589ea522913b8.diff
LOG: [NFC][AMDGPU] Remove unused/unimplemented `getWavesPerEU` variants (#181131)
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp b/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
index 4bcaabfd3263a..9bd8e97619ce1 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
@@ -201,16 +201,6 @@ class AMDGPUInformationCache : public InformationCache {
/// Get code object version.
unsigned getCodeObjectVersion() const { return CodeObjectVersion; }
- /// Get the effective value of "amdgpu-waves-per-eu" for the function,
- /// accounting for the interaction with the passed value to use for
- /// "amdgpu-flat-work-group-size".
- std::pair<unsigned, unsigned>
- getWavesPerEU(const Function &F,
- std::pair<unsigned, unsigned> FlatWorkGroupSize) {
- const GCNSubtarget &ST = TM.getSubtarget<GCNSubtarget>(F);
- return ST.getWavesPerEU(FlatWorkGroupSize, getLDSSize(F), F);
- }
-
std::optional<std::pair<unsigned, unsigned>>
getWavesPerEUAttr(const Function &F) {
auto Val = AMDGPU::getIntegerPairAttribute(F, "amdgpu-waves-per-eu",
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
index e5dc48b6998e4..302fe7c850b75 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
+++ b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
@@ -110,13 +110,6 @@ class AMDGPUSubtarget {
/// size, register usage, and/or lds usage.
std::pair<unsigned, unsigned> getWavesPerEU(const Function &F) const;
- /// Overload which uses the specified values for the flat work group sizes,
- /// rather than querying the function itself. \p FlatWorkGroupSizes Should
- /// correspond to the function's value for getFlatWorkGroupSizes.
- std::pair<unsigned, unsigned>
- getWavesPerEU(const Function &F,
- std::pair<unsigned, unsigned> FlatWorkGroupSizes) const;
-
/// Overload which uses the specified values for the flat workgroup sizes and
/// LDS space rather than querying the function itself. \p FlatWorkGroupSizes
/// should correspond to the function's value for getFlatWorkGroupSizes and \p
More information about the llvm-commits
mailing list