OSDN Git Service

InstCombine: If we have a bit test and a sign test anded/ored together, merge the...
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 8 Jan 2012 18:32:24 +0000 (18:32 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 8 Jan 2012 18:32:24 +0000 (18:32 +0000)
commitdfb806f6ba53b792171b928b57def9d0182d2f5f
treebab1deb804e8c347564e3e3b55bf0f41b3422d82
parent435d0bd09d34d0a9df2418b121c845841b0b5e11
InstCombine: If we have a bit test and a sign test anded/ored together, merge the sign bit into the bit test.

This is common in bit field code, e.g. checking if the first or the last bit of a bit field is set.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147749 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
test/Transforms/InstCombine/sign-test-and-or.ll