[x86] Begin teaching the new vector shuffle lowering among the most
authorChandler Carruth <chandlerc@gmail.com>
Sun, 21 Sep 2014 12:01:19 +0000 (12:01 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 21 Sep 2014 12:01:19 +0000 (12:01 +0000)
commit7922d3e39adc0b176b5e569969b37cca79752592
treee94ea029bb5df31871d713648aa491b183e363e3
parente4cb9d5f254977ec25aec2904b1732838f5f8f86
[x86] Begin teaching the new vector shuffle lowering among the most
important bits of cleverness: to detect and lower repeated shuffle
patterns between the two 128-bit lanes with a single instruction.

This patch just teaches it how to lower single-input shuffles that fit
this model using VPERMILPS. =] There is more that needs to happen here.

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