commit | 5ae7911b2437aec6f695d6820284ff7bc60ec97a | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Fri Sep 23 00:55:52 2005 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Fri Sep 23 00:55:52 2005 +0000 |
tree | bce932eedcf2e14946c865f79113364392b1f1f2 | |
parent | e8033c00d66f698982a6e1afc0e125d2515740b6 [diff] |
Turn (X^C1) == C2 into X == C1^C2 iff X&~C1 = 0 (and move a function) This happens all the time on PPC for bool values, e.g. eliminating a xori in inverted-bool-compares.ll. This should be added to the dag combiner as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23403 91177308-0d34-0410-b5e6-96231b3b80d8