[x86] add helper for creating a half-width shuffle; NFC
authorSanjay Patel <spatel@rotateright.com>
Sat, 26 Jan 2019 16:20:22 +0000 (16:20 +0000)
committerSanjay Patel <spatel@rotateright.com>
Sat, 26 Jan 2019 16:20:22 +0000 (16:20 +0000)
commita03c63b77fb7da32c9df77ca442f239ebe40f4b4
tree94232be7df17c56866c44ed4d303d470dc2c920c
parentdd9c86e5baf31fd7eb8aa82def00ac70dc77cbda
[x86] add helper for creating a half-width shuffle; NFC

This reduces a bit of duplication between the combining and
lowering places that use it, but the primary motivation is
to make it easier to rearrange the lowering logic and solve
PR40434:
https://bugs.llvm.org/show_bug.cgi?id=40434

llvm-svn: 352280
llvm/lib/Target/X86/X86ISelLowering.cpp