Skip to content

Commit 818f13f

Browse files
committed
[AMDGPU] Remove getWorkGroupIDSGPR, unused since aa6fb4c
1 parent 10bd69a commit 818f13f

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1041,22 +1041,6 @@ class SIMachineFunctionInfo final : public AMDGPUMachineFunction,
10411041
return WavesPerEU.second;
10421042
}
10431043

1044-
/// \returns SGPR used for \p Dim's work group ID.
1045-
Register getWorkGroupIDSGPR(unsigned Dim) const {
1046-
switch (Dim) {
1047-
case 0:
1048-
assert(hasWorkGroupIDX());
1049-
return ArgInfo.WorkGroupIDX.getRegister();
1050-
case 1:
1051-
assert(hasWorkGroupIDY());
1052-
return ArgInfo.WorkGroupIDY.getRegister();
1053-
case 2:
1054-
assert(hasWorkGroupIDZ());
1055-
return ArgInfo.WorkGroupIDZ.getRegister();
1056-
}
1057-
llvm_unreachable("unexpected dimension");
1058-
}
1059-
10601044
const AMDGPUGWSResourcePseudoSourceValue *
10611045
getGWSPSV(const AMDGPUTargetMachine &TM) {
10621046
return &GWSResourcePSV;

0 commit comments

Comments
 (0)