Turn a VAND into a VECTOR_SHUFFLE is applicable.
authorEvan Cheng <evan.cheng@apple.com>
Thu, 20 Apr 2006 08:56:16 +0000 (08:56 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Thu, 20 Apr 2006 08:56:16 +0000 (08:56 +0000)
commit44f1f09b4e08bf6f94269c1fe4363b99ef17af50
tree6009067276265c856d355978a1c9b57e46c32725
parentc313c66a88a19f6cb59f8c349fe86eb69ee68b5f
Turn a VAND into a VECTOR_SHUFFLE is applicable.
DAG combiner can turn a VAND V, <-1, 0, -1, -1>, i.e. vector clear elements,
into a vector shuffle with a zero vector. It only does so when TLI tells it
the xform is profitable.

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