Only legalise a VSELECT in to bitwise operations if the vector mask bool is zeros...
authorPete Cooper <peter_cooper@apple.com>
Sat, 1 Sep 2012 22:27:48 +0000 (22:27 +0000)
committerPete Cooper <peter_cooper@apple.com>
Sat, 1 Sep 2012 22:27:48 +0000 (22:27 +0000)
commitd906017c1a8b5c7c49f1bc21c13e8b85306298b8
tree6feaebaf5ab7c300aa355fba8b97cf9e88406e8d
parent8dce5b600494a6a3e1e1b157f038d97bb3dc4aa3
Only legalise a VSELECT in to bitwise operations if the vector mask bool is zeros or all ones.  A vector bool with just ones isn't suitable for masking with.

No test case unfortunately as i couldn't find a target which fit all
the conditions needed to hit this code.

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