[AMDGPU] SIFoldOperands: remove an unneeded isReg check. NFC.

This commit is contained in:
Jay Foad 2021-04-08 16:32:25 +01:00
parent 2cb8c10342
commit a1a372dfb5
1 changed files with 1 additions and 2 deletions

View File

@ -1779,8 +1779,7 @@ bool SIFoldOperands::runOnMachineFunction(MachineFunction &MF) {
// %3 = COPY %vgpr0; VGPR_32:%3
// ...
// %vgpr0 = V_MOV_B32_e32 1, implicit %exec
MachineOperand &Dst = MI.getOperand(0);
if (Dst.isReg() && !Dst.getReg().isVirtual())
if (!MI.getOperand(0).getReg().isVirtual())
continue;
foldInstOperand(MI, OpToFold);