forked from OSchip/llvm-project
[AMDGPU] Removed dead SIMachineFunctionInfo::getWorkItemIDVGPR()
Differential Revision: https://reviews.llvm.org/D63780 llvm-svn: 364339
This commit is contained in:
parent
61d70e4a93
commit
4be636ebb3
|
@ -300,23 +300,6 @@ void SIMachineFunctionInfo::removeSGPRToVGPRFrameIndices(MachineFrameInfo &MFI)
|
|||
MFI.setStackID(i, 0);
|
||||
}
|
||||
|
||||
|
||||
/// \returns VGPR used for \p Dim' work item ID.
|
||||
unsigned SIMachineFunctionInfo::getWorkItemIDVGPR(unsigned Dim) const {
|
||||
switch (Dim) {
|
||||
case 0:
|
||||
assert(hasWorkItemIDX());
|
||||
return AMDGPU::VGPR0;
|
||||
case 1:
|
||||
assert(hasWorkItemIDY());
|
||||
return AMDGPU::VGPR1;
|
||||
case 2:
|
||||
assert(hasWorkItemIDZ());
|
||||
return AMDGPU::VGPR2;
|
||||
}
|
||||
llvm_unreachable("unexpected dimension");
|
||||
}
|
||||
|
||||
MCPhysReg SIMachineFunctionInfo::getNextUserSGPR() const {
|
||||
assert(NumSystemSGPRs == 0 && "System SGPRs must be added after user SGPRs");
|
||||
return AMDGPU::SGPR0 + NumUserSGPRs;
|
||||
|
|
|
@ -675,9 +675,6 @@ public:
|
|||
llvm_unreachable("unexpected dimension");
|
||||
}
|
||||
|
||||
/// \returns VGPR used for \p Dim' work item ID.
|
||||
unsigned getWorkItemIDVGPR(unsigned Dim) const;
|
||||
|
||||
unsigned getLDSWaveSpillSize() const {
|
||||
return LDSWaveSpillSize;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue