Improved shuffle normalization to avoid using extract/build when we
authorMon P Wang <wangmp@apple.com>
Sun, 16 Nov 2008 05:06:27 +0000 (05:06 +0000)
committerMon P Wang <wangmp@apple.com>
Sun, 16 Nov 2008 05:06:27 +0000 (05:06 +0000)
commitc7849c22f4804075c0c972e20f9cd701bdb6ab6f
tree9f4dda703c98f0b9f5a3db4fdc973b15b3e15ac5
parent29cd5ba621268c44c8be72397e00c79899ecdf0b
Improved shuffle normalization to avoid using extract/build when we
can extract using different indexes for two vectors. Added a few tests
for vector shuffles.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59399 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
test/CodeGen/X86/vec_shuffle-25.ll [new file with mode: 0644]
test/CodeGen/X86/vec_shuffle-26.ll [new file with mode: 0644]
test/CodeGen/X86/vec_shuffle-27.ll [new file with mode: 0644]