Skip to content

Commit

Permalink
[AMDGPU] Removed dead SIMachineFunctionInfo::getWorkItemIDVGPR()
Browse files Browse the repository at this point in the history
Differential Revision: https://reviews.llvm.org/D63780

llvm-svn: 364339
  • Loading branch information
rampitec committed Jun 25, 2019
1 parent 61d70e4 commit 4be636e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
17 changes: 0 additions & 17 deletions llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
Expand Up @@ -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;
Expand Down
3 changes: 0 additions & 3 deletions llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
Expand Up @@ -675,9 +675,6 @@ class SIMachineFunctionInfo final : public AMDGPUMachineFunction {
llvm_unreachable("unexpected dimension");
}

/// \returns VGPR used for \p Dim' work item ID.
unsigned getWorkItemIDVGPR(unsigned Dim) const;

unsigned getLDSWaveSpillSize() const {
return LDSWaveSpillSize;
}
Expand Down

0 comments on commit 4be636e

Please sign in to comment.