Remove checking for isUNPCKL_v_undef_Mask, the specific node is already emitted for it
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 2 Sep 2010 03:57:58 +0000 (03:57 +0000)
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>
Thu, 2 Sep 2010 03:57:58 +0000 (03:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112804 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index 7acd8932fc6f2506a4e828e1fb6929bc83f3c688..e32df4dc5c5e90f6d6809b86ab024df59a30e067 100644 (file)
@@ -5290,8 +5290,7 @@ X86TargetLowering::LowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG) const {
     return getMOVL(DAG, dl, VT, V2, V1);
   }
 
-  if (X86::isUNPCKL_v_undef_Mask(SVOp) ||
-      X86::isUNPCKH_v_undef_Mask(SVOp) ||
+  if (X86::isUNPCKH_v_undef_Mask(SVOp) ||
       X86::isUNPCKLMask(SVOp) ||
       X86::isUNPCKHMask(SVOp))
     return Op;
@@ -5316,8 +5315,7 @@ X86TargetLowering::LowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG) const {
     // FIXME: this seems wrong.
     SDValue NewOp = CommuteVectorShuffle(SVOp, DAG);
     ShuffleVectorSDNode *NewSVOp = cast<ShuffleVectorSDNode>(NewOp);
-    if (X86::isUNPCKL_v_undef_Mask(NewSVOp) ||
-        X86::isUNPCKH_v_undef_Mask(NewSVOp) ||
+    if (X86::isUNPCKH_v_undef_Mask(NewSVOp) ||
         X86::isUNPCKLMask(NewSVOp) ||
         X86::isUNPCKHMask(NewSVOp))
       return NewOp;