Lower BUILD_VECTOR to VECTOR_SHUFFLE if there are two distinct nodes (and if
authorEvan Cheng <evan.cheng@apple.com>
Fri, 24 Mar 2006 01:17:21 +0000 (01:17 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 24 Mar 2006 01:17:21 +0000 (01:17 +0000)
commit033e6816668da71ff0866a61f5c0a7e7e795d069
tree8bf2aeb193d26b255f5cba702c86be1e0f25cc23
parent7056de375d898d9d9ecc17e170632d91d18be4a8
Lower BUILD_VECTOR to VECTOR_SHUFFLE if there are two distinct nodes (and if
the target can handle it). Issue two SCALAR_TO_VECTOR ops followed by a
VECTOR_SHUFFLE to select from the two vectors.

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