[x86] Factor out the zero vector insertion logic in the new vector
authorChandler Carruth <chandlerc@gmail.com>
Fri, 5 Sep 2014 10:36:31 +0000 (10:36 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 5 Sep 2014 10:36:31 +0000 (10:36 +0000)
commitc1c5dcf06913839943d536cf7ed7e2b2b87d0158
tree9c69de8b148634a6265bff7ed1bf1dc062b490e9
parent4b5f105a71e5bf2b07fe37558d90016ff1b1cb76
[x86] Factor out the zero vector insertion logic in the new vector
shuffle lowering for integer vectors and share it from v4i32, v8i16, and
v16i8 code paths.

Ironically, the SSE2 v16i8 code for this is now better than the SSSE3!
=] Will have to fix the SSSE3 code next to just using a single pshufb.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217240 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/vector-shuffle-128-v16.ll
test/CodeGen/X86/vector-shuffle-128-v8.ll