Skip to content

Commit a0c472d

Browse files
authored
AMDGPU: Remove special case of SGPR_LO class in imm folding (#155518)
Previous change accidentally broke this which shows it's not doing anything.
1 parent 61526f5 commit a0c472d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

llvm/lib/Target/AMDGPU/SIFoldOperands.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,14 +1260,6 @@ void SIFoldOperandsImpl::foldOperand(
12601260
return;
12611261

12621262
const TargetRegisterClass *DestRC = TRI->getRegClassForReg(*MRI, DestReg);
1263-
// Allow immediates COPYd into sgpr_lo16 to be further folded while
1264-
// still being legal if not further folded
1265-
if (DestRC == &AMDGPU::SGPR_LO16RegClass) {
1266-
assert(ST->useRealTrue16Insts());
1267-
MRI->setRegClass(DestReg, &AMDGPU::SGPR_32RegClass);
1268-
DestRC = &AMDGPU::SGPR_32RegClass;
1269-
}
1270-
12711263
// In order to fold immediates into copies, we need to change the copy to a
12721264
// MOV. Find a compatible mov instruction with the value.
12731265
for (unsigned MovOp :

0 commit comments

Comments
 (0)