[x86] Teach the new vector shuffle lowering about the simplest of
authorChandler Carruth <chandlerc@gmail.com>
Wed, 3 Sep 2014 22:48:34 +0000 (22:48 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 3 Sep 2014 22:48:34 +0000 (22:48 +0000)
commit699fd1909ee7c56c8cb08ef34746bc1c06d77eb9
treebdaedd026d558dae9ce05bb2d1f7729fc8c822d1
parent5f209637c4a6297315774c3e7098cc1f458e80f7
[x86] Teach the new vector shuffle lowering about the simplest of
'insertps' patterns.

This replaces two shuffles with a single insertps in very common cases.
My next patch will extend this to leverage the zeroing capabilities of
insertps which will allow it to be used in a much wider set of cases.

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