summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2010-09-07 20:20:27 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2010-09-07 20:20:27 +0000
commit7c483028fbe09b56e4ee62201f3f5dc9e18e5687 (patch)
treef309d6629d21109626df56a38fb6c6dd23a79154 /llvm/lib
parente9b76c2a410cd59e2267edcbc922c9efb93bc3b6 (diff)
downloadbcm5719-llvm-7c483028fbe09b56e4ee62201f3f5dc9e18e5687.tar.gz
bcm5719-llvm-7c483028fbe09b56e4ee62201f3f5dc9e18e5687.zip
Move code around to prepare for moving some of the logic together to another function
llvm-svn: 113267
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index aef02a81f41..9d507d349de 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -5271,9 +5271,6 @@ X86TargetLowering::LowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG) const {
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 @@ X86TargetLowering::LowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG) const {
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);
OpenPOWER on IntegriCloud