Skip to content

Commit df33a79

Browse files
committed
remove useless check
1 parent 5950e82 commit df33a79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/TargetInstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ MachineInstr *TargetInstrInfo::commuteInstructionImpl(MachineInstr &MI,
220220
// we need to update the implicit-def after commuting to result in:
221221
// %1.sub = INST %1.sub(tied), %0.sub, implicit-def %1
222222
SmallVector<unsigned> UpdateImplicitDefIdx;
223-
if (HasDef && MI.hasImplicitDef() && MI.getOperand(0).getReg() == Reg0) {
223+
if (HasDef && MI.hasImplicitDef()) {
224224
const TargetRegisterInfo *TRI =
225225
MI.getMF()->getSubtarget().getRegisterInfo();
226226
for (auto [OpNo, MO] : llvm::enumerate(MI.implicit_operands())) {

0 commit comments

Comments
 (0)