If a shuffle is unary, i.e. one of the vector argument is not needed, turn the
authorEvan Cheng <evan.cheng@apple.com>
Thu, 20 Jul 2006 22:44:41 +0000 (22:44 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 20 Jul 2006 22:44:41 +0000 (22:44 +0000)
commite7bec0dbb50235ec60f78f1f7b3f6d2f6bb5cd91
tree144d6e4c480b44f6b2bcb17dfc0a3d8e1a793bbe
parent514e258994b5a28935a144217680d23efaa16ba4
If a shuffle is unary, i.e. one of the vector argument is not needed, turn the
operand into a undef and adjust mask accordingly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29232 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp