[llvm] a1a372d - [AMDGPU] SIFoldOperands: remove an unneeded isReg check. NFC.
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 8 08:38:49 PDT 2021
Author: Jay Foad
Date: 2021-04-08T16:37:43+01:00
New Revision: a1a372dfb526d916edda40d85ebd0d96537b8391
URL: https://github.com/llvm/llvm-project/commit/a1a372dfb526d916edda40d85ebd0d96537b8391
DIFF: https://github.com/llvm/llvm-project/commit/a1a372dfb526d916edda40d85ebd0d96537b8391.diff
LOG: [AMDGPU] SIFoldOperands: remove an unneeded isReg check. NFC.
Added:
Modified:
llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp b/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
index a236dc156643..d1f27600cf64 100644
--- a/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
+++ b/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
@@ -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);
More information about the llvm-commits
mailing list