Checking a build_vector for an all-ones value.
authorJim Grosbach <grosbach@apple.com>
Wed, 21 Mar 2012 17:48:04 +0000 (17:48 +0000)
committerJim Grosbach <grosbach@apple.com>
Wed, 21 Mar 2012 17:48:04 +0000 (17:48 +0000)
commit331ff3b1d1a08b4a39cea7cdc0c9a8567a5ba1b4
treed9f3d9ceaf5b9f93143b4313016c1f01586dd2ea
parent208a4ff2b56f453910bb817540f34b8169f7702a
Checking a build_vector for an all-ones value.

Type legalization can zero-extend the elements of the build_vector node, so,
for example, we may have an <8 x i8> with i32 elements of value 255. That
should return 'true' for the vector being all ones.

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