[llvm-commits] [llvm] r106586 - /llvm/trunk/lib/Target/X86/X86InstrInfo.cpp

Bill Wendling isanbard at gmail.com
Tue Jun 22 15:16:17 PDT 2010


Author: void
Date: Tue Jun 22 17:16:17 2010
New Revision: 106586

URL: http://llvm.org/viewvc/llvm-project?rev=106586&view=rev
Log:
Fix the formatting of the switch statement and add a missing break.

Modified:
    llvm/trunk/lib/Target/X86/X86InstrInfo.cpp

Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.cpp?rev=106586&r1=106585&r2=106586&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.cpp Tue Jun 22 17:16:17 2010
@@ -3007,16 +3007,16 @@
 
   EVT VT = Load1->getValueType(0);
   switch (VT.getSimpleVT().SimpleTy) {
-  default: {
+  default:
     // XMM registers. In 64-bit mode we can be a bit more aggressive since we
     // have 16 of them to play with.
     if (TM.getSubtargetImpl()->is64Bit()) {
       if (NumLoads >= 3)
         return false;
-    } else if (NumLoads)
+    } else if (NumLoads) {
       return false;
+    }
     break;
-  }
   case MVT::i8:
   case MVT::i16:
   case MVT::i32:
@@ -3025,6 +3025,7 @@
   case MVT::f64:
     if (NumLoads)
       return false;
+    break;
   }
 
   return true;





More information about the llvm-commits mailing list