X86: When combining shuffles just remove shuffles that are completely redundant.
authorBenjamin Kramer <benny.kra@googlemail.com>
Wed, 2 Jul 2014 15:09:44 +0000 (15:09 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Wed, 2 Jul 2014 15:09:44 +0000 (15:09 +0000)
commit11be760757fc0dd7e562afdd194aba2f4ddae760
tree26787e7481712fe0dff5e9583e211d13c1289b30
parenta3af27aa0b26edf5d29ce56a5224c9c56f217afb
X86: When combining shuffles just remove shuffles that are completely redundant.

CombineTo doesn't allow replacing a node with itself so this would crash if the
combined shuffle is the same as the input shuffle.

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