commit | 89bb7b56407bf81a5d5fdcdac7106d94bb30dd65 | [log] [tgz] |
---|---|---|
author | Evan Cheng <evan.cheng@apple.com> | Thu Feb 18 02:13:50 2010 +0000 |
committer | Evan Cheng <evan.cheng@apple.com> | Thu Feb 18 02:13:50 2010 +0000 |
tree | 92fb7534bd2dd143be928893e1134ef3f5153081 | |
parent | ca82a15ad1830440dadfd18116d1a450df34b90a [diff] |
Some dag combiner goodness: Transform br (xor (x, y)) -> br (x != y) Transform br (xor (xor (x,y), 1)) -> br (x == y) Also normalize (and (X, 1) == / != 1 -> (and (X, 1)) != / == 0 to match to "test on x86" and "tst on arm" git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96556 91177308-0d34-0410-b5e6-96231b3b80d8