[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)
commit499d7332c5aafad1f7b20d615e375e332b9b8bfe
tree38e895203c1653da424e225721cbd3a37e530c52
parentfe696088398bc934e8b0c661e48d56fec654821b
[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.

llvm-svn: 229285
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/vector-shuffle-combining.ll