[x86] Teach the X86 backend to DAG-combine SSE2 shuffles that are
authorChandler Carruth <chandlerc@gmail.com>
Fri, 27 Jun 2014 11:27:52 +0000 (11:27 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Fri, 27 Jun 2014 11:27:52 +0000 (11:27 +0000)
commit97ebc2362c506da8147c14218cbe395dea026442
tree0d357cd4f4a4fef4d33839c24c6df40fba1b6054
parent83860cfcfa16e90e1fe4cd88b13fd1bf0b0f2f96
[x86] Teach the X86 backend to DAG-combine SSE2 shuffles that are
trivially redundant.

This fixes several cases in the new vector shuffle lowering algorithm
which would generate redundant shuffle instructions for the sake of
simplicity.

I'm also deleting a testcase which was somewhat ridiculous. It was
checking for a bug in 2007 about incorrectly transforming shuffles by
looking for the string "-86" in the output of a pretty substantial
function. This test case doesn't seem to have any value at this point.

Differential Revision: http://reviews.llvm.org/D4240

llvm-svn: 211889
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/2007-09-18-ShuffleXformBug.ll [deleted file]
llvm/test/CodeGen/X86/vector-shuffle-128-v8.ll