[llvm-commits] [llvm] r113267 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Bruno Cardoso Lopes bruno.cardoso at gmail.com
Tue Sep 7 13:20:27 PDT 2010


Author: bruno
Date: Tue Sep  7 15:20:27 2010
New Revision: 113267

URL: http://llvm.org/viewvc/llvm-project?rev=113267&view=rev
Log:
Move code around to prepare for moving some of the logic together to another function

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

Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=113267&r1=113266&r2=113267&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Tue Sep  7 15:20:27 2010
@@ -5271,9 +5271,6 @@
   MachineFunction &MF = DAG.getMachineFunction();
   bool OptForSize = MF.getFunction()->hasFnAttr(Attribute::OptimizeForSize);
 
-  if (isZeroShuffle(SVOp))
-    return getZeroVector(VT, Subtarget->hasSSE2(), DAG, dl);
-
   // FIXME: this is somehow handled during isel by MMX pattern fragments. Remove
   // the check or come up with another solution when all MMX move to intrinsics,
   // but don't allow this to be considered legal, we don't want vector_shuffle
@@ -5281,6 +5278,9 @@
   if (isMMX && SVOp->isSplat())
     return Op;
 
+  if (isZeroShuffle(SVOp))
+    return getZeroVector(VT, Subtarget->hasSSE2(), DAG, dl);
+
   // Promote splats to v4f32.
   if (SVOp->isSplat())
     return PromoteSplat(SVOp, DAG);





More information about the llvm-commits mailing list