[AMDGPU] SIFoldOperands: remove an unneeded isReg check. NFC.
authorJay Foad <jay.foad@amd.com>
Thu, 8 Apr 2021 15:32:25 +0000 (16:32 +0100)
committerJay Foad <jay.foad@amd.com>
Thu, 8 Apr 2021 15:37:43 +0000 (16:37 +0100)
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp

index a236dc1..d1f2760 100644 (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);