[llvm-commits] [llvm] r146566 - /llvm/trunk/lib/Target/ARM/ARMFastISel.cpp

Chad Rosier mcrosier at apple.com
Wed Dec 14 09:26:05 PST 2011


Author: mcrosier
Date: Wed Dec 14 11:26:05 2011
New Revision: 146566

URL: http://llvm.org/viewvc/llvm-project?rev=146566&view=rev
Log:
Fix 80-column violation and extraneous brackets.

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

Modified: llvm/trunk/lib/Target/ARM/ARMFastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMFastISel.cpp?rev=146566&r1=146565&r2=146566&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMFastISel.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMFastISel.cpp Wed Dec 14 11:26:05 2011
@@ -178,8 +178,9 @@
     bool isLoadTypeLegal(Type *Ty, MVT &VT);
     bool ARMEmitCmp(const Value *Src1Value, const Value *Src2Value,
                     bool isZExt);
-    bool ARMEmitLoad(EVT VT, unsigned &ResultReg, Address &Addr, unsigned Alignment = 0,
-                     bool isZExt = true, bool allocReg = true);
+    bool ARMEmitLoad(EVT VT, unsigned &ResultReg, Address &Addr,
+                     unsigned Alignment = 0, bool isZExt = true,
+                     bool allocReg = true);
                      
     bool ARMEmitStore(EVT VT, unsigned SrcReg, Address &Addr,
                       unsigned Alignment = 0);
@@ -1027,11 +1028,11 @@
       }
       break;
     case MVT::f64:
-      if (Alignment && Alignment < 4) {
-        // FIXME: Unaligned loads need special handling.  Doublewords require
-        // word-alignment.
+      // FIXME: Unaligned loads need special handling.  Doublewords require
+      // word-alignment.
+      if (Alignment && Alignment < 4)
         return false;
-      }
+
       Opc = ARM::VLDRD;
       RC = TLI.getRegClassFor(VT);
       break;
@@ -1145,9 +1146,9 @@
       if (!Subtarget->hasVFP2()) return false;
       // FIXME: Unaligned stores need special handling.  Doublewords require
       // word-alignment.
-      if (Alignment && Alignment < 4) {
+      if (Alignment && Alignment < 4)
           return false;
-      }
+
       StrOpc = ARM::VSTRD;
       break;
   }





More information about the llvm-commits mailing list