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

Manman Ren mren at apple.com
Fri May 11 08:36:46 PDT 2012


Author: mren
Date: Fri May 11 10:36:46 2012
New Revision: 156620

URL: http://llvm.org/viewvc/llvm-project?rev=156620&view=rev
Log:
Add space before an open parenthesis in control flow statements.

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=156620&r1=156619&r2=156620&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMBaseInstrInfo.cpp Fri May 11 10:36:46 2012
@@ -1854,7 +1854,7 @@
     // Conservatively refuse to convert an instruction which isn't in the same
     // BB as the comparison.
     // For CMPri, we need to check Sub, thus we can't return here.
-    if(CmpInstr->getOpcode() == ARM::CMPri ||
+    if (CmpInstr->getOpcode() == ARM::CMPri ||
        CmpInstr->getOpcode() == ARM::t2CMPri)
       MI = NULL;
     else
@@ -2023,7 +2023,7 @@
     for (unsigned i = 0; i < OperandsToUpdate.size(); i++) {
       ARMCC::CondCodes CC = (ARMCC::CondCodes)OperandsToUpdate[i]->getImm();
       ARMCC::CondCodes NewCC;
-      switch(CC) {
+      switch (CC) {
       default: break;
       case ARMCC::GE: NewCC = ARMCC::LE; break;
       case ARMCC::LT: NewCC = ARMCC::GT; break;





More information about the llvm-commits mailing list