forked from OSchip/llvm-project
[AMDGPU] SIFoldOperands: remove an unneeded isReg check. NFC.
This commit is contained in:
parent
2cb8c10342
commit
a1a372dfb5
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue