Skip to content

Commit 596bed3

Browse files
committed
[AMDGPU] Remove unused methods. NFC.
1 parent 579a7a1 commit 596bed3

File tree

3 files changed

+0
-32
lines changed

3 files changed

+0
-32
lines changed

llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -912,30 +912,6 @@ class GCNSubtarget : public AMDGPUGenSubtargetInfo,
912912
void setScalarizeGlobalBehavior(bool b) { ScalarizeGlobal = b; }
913913
bool getScalarizeGlobalBehavior() const { return ScalarizeGlobal; }
914914

915-
/// \returns Number of execution units per compute unit supported by the
916-
/// subtarget.
917-
unsigned getEUsPerCU() const {
918-
return AMDGPU::IsaInfo::getEUsPerCU(this);
919-
}
920-
921-
/// \returns Maximum number of waves per compute unit supported by the
922-
/// subtarget without any kind of limitation.
923-
unsigned getMaxWavesPerCU() const {
924-
return AMDGPU::IsaInfo::getMaxWavesPerCU(this);
925-
}
926-
927-
/// \returns Maximum number of waves per compute unit supported by the
928-
/// subtarget and limited by given \p FlatWorkGroupSize.
929-
unsigned getMaxWavesPerCU(unsigned FlatWorkGroupSize) const {
930-
return AMDGPU::IsaInfo::getMaxWavesPerCU(this, FlatWorkGroupSize);
931-
}
932-
933-
/// \returns Number of waves per work group supported by the subtarget and
934-
/// limited by given \p FlatWorkGroupSize.
935-
unsigned getWavesPerWorkGroup(unsigned FlatWorkGroupSize) const {
936-
return AMDGPU::IsaInfo::getWavesPerWorkGroup(this, FlatWorkGroupSize);
937-
}
938-
939915
// static wrappers
940916
static bool hasHalfRate64Ops(const TargetSubtargetInfo &STI);
941917

llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -283,10 +283,6 @@ unsigned getMaxWorkGroupsPerCU(const MCSubtargetInfo *STI,
283283
return std::min(N, 16u);
284284
}
285285

286-
unsigned getMaxWavesPerCU(const MCSubtargetInfo *STI) {
287-
return getMaxWavesPerEU(STI) * getEUsPerCU(STI);
288-
}
289-
290286
unsigned getMaxWavesPerCU(const MCSubtargetInfo *STI,
291287
unsigned FlatWorkGroupSize) {
292288
return getWavesPerWorkGroup(STI, FlatWorkGroupSize);

llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,6 @@ unsigned getEUsPerCU(const MCSubtargetInfo *STI);
8787
unsigned getMaxWorkGroupsPerCU(const MCSubtargetInfo *STI,
8888
unsigned FlatWorkGroupSize);
8989

90-
/// \returns Maximum number of waves per compute unit for given subtarget \p
91-
/// STI without any kind of limitation.
92-
unsigned getMaxWavesPerCU(const MCSubtargetInfo *STI);
93-
9490
/// \returns Maximum number of waves per compute unit for given subtarget \p
9591
/// STI and limited by given \p FlatWorkGroupSize.
9692
unsigned getMaxWavesPerCU(const MCSubtargetInfo *STI,

0 commit comments

Comments
 (0)