Added InstCombine for "select cond, ~cond, x" type patterns
authorPete Cooper <peter_cooper@apple.com>
Thu, 15 Dec 2011 00:56:45 +0000 (00:56 +0000)
committerPete Cooper <peter_cooper@apple.com>
Thu, 15 Dec 2011 00:56:45 +0000 (00:56 +0000)
commit4e5a1ab10b62b7ca842afd0e99ac982153f217fb
tree6d1ec10d4f0722223378a44a48bf330829337f42
parent4e0adfa7f7fa5617a7a06028cdad0e4a50cac22a
Added InstCombine for "select cond, ~cond, x" type patterns

These can be reduced to "~cond & x" or "~cond | x"

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146624 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineSelect.cpp
test/Transforms/InstCombine/select.ll