Remove the last bit of isShuffleMaskLegal checks and improve the comment regarding mmx shuffles

llvm-svn: 113059
This commit is contained in:
Bruno Cardoso Lopes 2010-09-04 02:58:56 +00:00
parent 731bcc1abf
commit c6accda78e
1 changed files with 3 additions and 5 deletions

View File

@ -5472,14 +5472,12 @@ X86TargetLowering::LowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG) const {
X86::getShufflePALIGNRImmediate(SVOp),
DAG);
// MMX shuffles not already handled must be expanded.
// Only a few shuffle masks are handled for 64-bit vectors (MMX), and
// 64-bit vectors which made to this point can't be handled, they are
// expanded.
if (VT.getSizeInBits() == 64)
return SDValue();
// FIXME: pshufb, blends, shifts.
if (VT.getVectorNumElements() == 2)
return Op;
if (ShuffleVectorSDNode::isSplatMask(&M[0], VT) &&
SVOp->getSplatIndex() == 0 && V2IsUndef) {
if (VT == MVT::v2f64)