Skip to content

Commit 5601c40

Browse files
authored
AMDGPU: Stop trying to constrain register class of post-RA-pseudos (#161792)
This is trying to constrain the register class of a physical register, which makes no sense.
1 parent 2a39d8b commit 5601c40

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2112,8 +2112,6 @@ bool SIInstrInfo::expandPostRAPseudo(MachineInstr &MI) const {
21122112

21132113
case AMDGPU::SI_RESTORE_S32_FROM_VGPR:
21142114
MI.setDesc(get(AMDGPU::V_READLANE_B32));
2115-
MI.getMF()->getRegInfo().constrainRegClass(MI.getOperand(0).getReg(),
2116-
&AMDGPU::SReg_32_XM0RegClass);
21172115
break;
21182116
case AMDGPU::AV_MOV_B32_IMM_PSEUDO: {
21192117
Register Dst = MI.getOperand(0).getReg();

0 commit comments

Comments
 (0)