diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-02-18 02:13:50 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-02-18 02:13:50 +0000 |
commit | 0ceb68a5525eda5e89aea4ba97115b94d8dcc5f9 (patch) | |
tree | 9db9ff807d5767026f6466a707841fe94f1be2cd /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | 8661a72b483676235b414b23e4a7a739c63dd9e2 (diff) | |
download | bcm5719-llvm-0ceb68a5525eda5e89aea4ba97115b94d8dcc5f9.tar.gz bcm5719-llvm-0ceb68a5525eda5e89aea4ba97115b94d8dcc5f9.zip |
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"
llvm-svn: 96556
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
0 files changed, 0 insertions, 0 deletions