Skip to content

Commit b1fa4ac

Browse files
AMDGPU: Remove unused helpers
1 parent 1da8eb8 commit b1fa4ac

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

llvm/lib/Target/AMDGPU/GCNSubtarget.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -567,12 +567,6 @@ unsigned GCNSubtarget::getMaxNumVGPRs(const Function &F) const {
567567
getMaxNumVGPRs(Waves.first, DynamicVGPRBlockSize)});
568568
}
569569

570-
unsigned GCNSubtarget::getMaxNumAGPRs(const Function &F, unsigned ArchVGPRs,
571-
unsigned WavesPerEU) const {
572-
assert(WavesPerEU > 0);
573-
return (getTotalNumVGPRs() - ArchVGPRs) / WavesPerEU;
574-
}
575-
576570
unsigned GCNSubtarget::getMaxNumVGPRs(const MachineFunction &MF) const {
577571
return getMaxNumVGPRs(MF.getFunction());
578572
}

llvm/lib/Target/AMDGPU/GCNSubtarget.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,9 +1722,6 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo,
17221722
/// unit requirement.
17231723
unsigned getMaxNumVGPRs(const Function &F) const;
17241724

1725-
unsigned getMaxNumAGPRs(const Function &F, unsigned ArchVGPRs,
1726-
unsigned WavesPerEU) const;
1727-
17281725
unsigned getMaxNumAGPRs(unsigned WavesPerEU) const {
17291726
return AMDGPU::IsaInfo::getMaxNumAGPRs(this, WavesPerEU);
17301727
}
@@ -1743,11 +1740,6 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo,
17431740
/// unit requirement.
17441741
unsigned getMaxNumVGPRs(const MachineFunction &MF) const;
17451742

1746-
unsigned getMaxNumAGPRs(const MachineFunction &MF, unsigned ArchVGPRs,
1747-
unsigned WavesPerEU) const {
1748-
return getMaxNumAGPRs(MF.getFunction(), ArchVGPRs, WavesPerEU);
1749-
}
1750-
17511743
bool supportsWave32() const { return getGeneration() >= GFX10; }
17521744

17531745
bool supportsWave64() const { return !hasGFX1250Insts(); }

0 commit comments

Comments
 (0)