[llvm-commits] [llvm] r111430 - /llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp

Bill Wendling isanbard at gmail.com
Wed Aug 18 14:32:07 PDT 2010


Author: void
Date: Wed Aug 18 16:32:07 2010
New Revision: 111430

URL: http://llvm.org/viewvc/llvm-project?rev=111430&view=rev
Log:
Minor simplification. Gets rid of a needless temporary.

Modified:
    llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp?rev=111430&r1=111429&r2=111430&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp Wed Aug 18 16:32:07 2010
@@ -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;
 }





More information about the llvm-commits mailing list