[x86] Fix PR22377, a regression with the new vector shuffle legality
authorChandler Carruth <chandlerc@gmail.com>
Sun, 15 Feb 2015 07:01:10 +0000 (07:01 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 15 Feb 2015 07:01:10 +0000 (07:01 +0000)
commit5ee516549f907a807017ba4f4858731ab677a75a
tree05e2d3975b8d9484b831e7af1ee5dfba2715b4bc
parent9bb943b1851073a316b7244dbd4d5d6cc3758623
[x86] Fix PR22377, a regression with the new vector shuffle legality
test.

This was just a matter of the DAG combine for vector shuffles being too
aggressive. This is a bit of a grey area, but I think generally if we
can re-use intermediate shuffles, we should. Certainly, given the test
cases I have available, this seems like the right call.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229285 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/vector-shuffle-combining.ll