commit | dfb806f6ba53b792171b928b57def9d0182d2f5f | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Sun Jan 08 18:32:24 2012 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Sun Jan 08 18:32:24 2012 +0000 |
tree | bab1deb804e8c347564e3e3b55bf0f41b3422d82 | |
parent | 435d0bd09d34d0a9df2418b121c845841b0b5e11 [diff] |
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