[llvm-commits] [llvm] r120410 - in /llvm/trunk/lib/Target/X86: X86ISelLowering.cpp X86ISelLowering.h

Eric Christopher echristo at apple.com
Tue Nov 30 00:10:29 PST 2010


Author: echristo
Date: Tue Nov 30 02:10:28 2010
New Revision: 120410

URL: http://llvm.org/viewvc/llvm-project?rev=120410&view=rev
Log:
Fix some cleanups from my last patch.

Modified:
    llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
    llvm/trunk/lib/Target/X86/X86ISelLowering.h

Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=120410&r1=120409&r2=120410&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Tue Nov 30 02:10:28 2010
@@ -9445,7 +9445,7 @@
 
 MachineBasicBlock *
 X86TargetLowering::EmitMonitor(MachineInstr *MI, MachineBasicBlock *BB) const {
-  assert((Subtarget->hasSSE3()) && "Target must have SSE3 features enabled");
+  assert(Subtarget->hasSSE3() && "Target must have SSE3 features enabled");
   
   DebugLoc dl = MI->getDebugLoc();
   const TargetInstrInfo *TII = getTargetMachine().getInstrInfo();
@@ -9455,7 +9455,7 @@
   unsigned MemReg = Subtarget->is64Bit() ? X86::RAX : X86::EAX;
   MachineInstrBuilder MIB = BuildMI(*BB, MI, dl, TII->get(MemOpc), MemReg);
   for (int i = 0; i < X86::AddrNumOperands; ++i)
-    (*MIB).addOperand(MI->getOperand(i));
+    MIB.addOperand(MI->getOperand(i));
   
   unsigned ValOps = X86::AddrNumOperands;
   BuildMI(*BB, MI, dl, TII->get(TargetOpcode::COPY), X86::ECX)
@@ -9472,7 +9472,7 @@
 
 MachineBasicBlock *
 X86TargetLowering::EmitMwait(MachineInstr *MI, MachineBasicBlock *BB) const {
-  assert((Subtarget->hasSSE3()) && "Target must have SSE3 features enabled");
+  assert(Subtarget->hasSSE3() && "Target must have SSE3 features enabled");
   
   DebugLoc dl = MI->getDebugLoc();
   const TargetInstrInfo *TII = getTargetMachine().getInstrInfo();

Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.h?rev=120410&r1=120409&r2=120410&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.h (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.h Tue Nov 30 02:10:28 2010
@@ -824,8 +824,8 @@
     /// Utility functions to emit monitor and mwait instructions. These
     /// need to make sure that the arguments to the intrinsic are in the
     /// correct registers.
-    MachineBasicBlock *EmitMonitor(MachineInstr *MI, MachineBasicBlock *BB)
-      const;
+    MachineBasicBlock *EmitMonitor(MachineInstr *MI,
+                                   MachineBasicBlock *BB) const;
     MachineBasicBlock *EmitMwait(MachineInstr *MI, MachineBasicBlock *BB) const;
 
     /// Utility function to emit atomic bitwise operations (and, or, xor).





More information about the llvm-commits mailing list