diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-01-26 16:57:36 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-01-26 16:57:36 +0000 |
| commit | d567c27c84cf5cf9a462a82b92d178dc8219b26d (patch) | |
| tree | 4c929e5449155f382b5aa32215377aa663a997b6 | |
| parent | 9896238dc979d383b23129529565adcd746bac1c (diff) | |
| download | bcm5719-llvm-d567c27c84cf5cf9a462a82b92d178dc8219b26d.tar.gz bcm5719-llvm-d567c27c84cf5cf9a462a82b92d178dc8219b26d.zip | |
[X86][SSE] Drop PMADDWD in lowerMul
As mentioned in D42258, we don't need this any more
llvm-svn: 323540
| -rw-r--r-- | llvm/lib/Target/X86/X86ISelLowering.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index ae82bbb75ee..a7049415088 100644 --- a/llvm/lib/Target/X86/X86ISelLowering.cpp +++ b/llvm/lib/Target/X86/X86ISelLowering.cpp @@ -22262,13 +22262,6 @@ static SDValue LowerMUL(SDValue Op, const X86Subtarget &Subtarget, assert(Subtarget.hasSSE2() && !Subtarget.hasSSE41() && "Should not custom lower when pmulld is available!"); - // If the upper 17 bits of each element are zero then we can use PMADDWD. - APInt Mask17 = APInt::getHighBitsSet(32, 17); - if (DAG.MaskedValueIsZero(A, Mask17) && DAG.MaskedValueIsZero(B, Mask17)) - return DAG.getNode(X86ISD::VPMADDWD, dl, VT, - DAG.getBitcast(MVT::v8i16, A), - DAG.getBitcast(MVT::v8i16, B)); - // Extract the odd parts. static const int UnpackMask[] = { 1, -1, 3, -1 }; SDValue Aodds = DAG.getVectorShuffle(VT, dl, A, A, UnpackMask); |

