Minor simplification. Gets rid of a needless temporary.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111430 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/ARM/ARMBaseInstrInfo.cpp b/lib/Target/ARM/ARMBaseInstrInfo.cpp
index 7e166d5..7609494 100644
--- a/lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/lib/Target/ARM/ARMBaseInstrInfo.cpp
@@ -1403,14 +1403,13 @@
case ARM::ADDri:
case ARM::SUBri:
case ARM::t2ADDri:
- case ARM::t2SUBri: {
+ case ARM::t2SUBri:
MI->RemoveOperand(5);
- MachineInstrBuilder MB(MI);
- MB.addReg(ARM::CPSR, RegState::Define | RegState::Implicit);
+ MachineInstrBuilder(MI)
+ .addReg(ARM::CPSR, RegState::Define | RegState::Implicit);
CmpInstr->eraseFromParent();
return true;
}
- }
return false;
}