Skip to content

Commit 182c415

Browse files
authored
AMDGPU: Remove getProperlyAlignedRC (#167993)
This is unused.
1 parent cfad41c commit 182c415

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4017,28 +4017,6 @@ bool SIRegisterInfo::isProperlyAlignedRC(const TargetRegisterClass &RC) const {
40174017
return true;
40184018
}
40194019

4020-
const TargetRegisterClass *
4021-
SIRegisterInfo::getProperlyAlignedRC(const TargetRegisterClass *RC) const {
4022-
if (!RC || !ST.needsAlignedVGPRs())
4023-
return RC;
4024-
4025-
unsigned Size = getRegSizeInBits(*RC);
4026-
if (Size <= 32)
4027-
return RC;
4028-
4029-
if (RC == &AMDGPU::VS_64RegClass)
4030-
return &AMDGPU::VS_64_Align2RegClass;
4031-
4032-
if (isVGPRClass(RC))
4033-
return getAlignedVGPRClassForBitWidth(Size);
4034-
if (isAGPRClass(RC))
4035-
return getAlignedAGPRClassForBitWidth(Size);
4036-
if (isVectorSuperClass(RC))
4037-
return getAlignedVectorSuperClassForBitWidth(Size);
4038-
4039-
return RC;
4040-
}
4041-
40424020
ArrayRef<MCPhysReg>
40434021
SIRegisterInfo::getAllSGPR128(const MachineFunction &MF) const {
40444022
return ArrayRef(AMDGPU::SGPR_128RegClass.begin(), ST.getMaxNumSGPRs(MF) / 4);

llvm/lib/Target/AMDGPU/SIRegisterInfo.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -439,11 +439,6 @@ class SIRegisterInfo final : public AMDGPUGenRegisterInfo {
439439
// the subtarget.
440440
bool isProperlyAlignedRC(const TargetRegisterClass &RC) const;
441441

442-
// Given \p RC returns corresponding aligned register class if required
443-
// by the subtarget.
444-
const TargetRegisterClass *
445-
getProperlyAlignedRC(const TargetRegisterClass *RC) const;
446-
447442
/// Return all SGPR128 which satisfy the waves per execution unit requirement
448443
/// of the subtarget.
449444
ArrayRef<MCPhysReg> getAllSGPR128(const MachineFunction &MF) const;

0 commit comments

Comments
 (0)