1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

PUNPCKLDQ should also be used for v4f32

llvm-svn: 112020
This commit is contained in:
Bruno Cardoso Lopes 2010-08-25 02:55:40 +00:00
parent 33aa4f7d1c
commit af72dd7362

View File

@ -4887,7 +4887,7 @@ X86TargetLowering::LowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG) const {
return getTargetShuffleNode(X86ISD::MOVLHPS, dl, VT, V1, V1, DAG); return getTargetShuffleNode(X86ISD::MOVLHPS, dl, VT, V1, V1, DAG);
if (OptForSize && HasSSE2 && X86::isUNPCKL_v_undef_Mask(SVOp) && if (OptForSize && HasSSE2 && X86::isUNPCKL_v_undef_Mask(SVOp) &&
VT == MVT::v4i32) (VT == MVT::v4i32 || VT == MVT::v4f32))
return getTargetShuffleNode(X86ISD::PUNPCKLDQ, dl, VT, V1, V1, DAG); return getTargetShuffleNode(X86ISD::PUNPCKLDQ, dl, VT, V1, V1, DAG);
unsigned TargetMask = X86::getShuffleSHUFImmediate(SVOp); unsigned TargetMask = X86::getShuffleSHUFImmediate(SVOp);