Match new shuffle codegen for MOVHPD patterns
authorSanjay Patel <spatel@rotateright.com>
Wed, 10 Dec 2014 16:58:54 +0000 (16:58 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 10 Dec 2014 16:58:54 +0000 (16:58 +0000)
commit3cd5b83bb82d2199bd4857c760edf4a49255bf84
tree1c2b5a95ccfd5e188c4c60fb9d5ae648ab8a68f5
parent7e1839ff0180337b61a3a61d2608ff3f8bc16df1
Match new shuffle codegen for MOVHPD patterns

Add patterns to match SSE (shufpd) and AVX (vpermilpd) shuffle codegen
when storing the high element of a v2f64. The existing patterns were
only checking for an unpckh type of shuffle.

http://llvm.org/bugs/show_bug.cgi?id=21791

Differential Revision: http://reviews.llvm.org/D6586

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223929 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrSSE.td
test/CodeGen/X86/extractelement-load.ll