diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-09-23 00:55:52 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-09-23 00:55:52 +0000 |
| commit | 59a05bdde6b77ec1f76e4de805c032cce3e552ee (patch) | |
| tree | ad9272bce7780fd9036ea905662cea743581a80f /llvm/lib/Transforms/Utils/SimplifyCFG.cpp | |
| parent | c619d4315525d9cab9008a8099000020e2653f29 (diff) | |
| download | bcm5719-llvm-59a05bdde6b77ec1f76e4de805c032cce3e552ee.tar.gz bcm5719-llvm-59a05bdde6b77ec1f76e4de805c032cce3e552ee.zip | |
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.
llvm-svn: 23403
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
0 files changed, 0 insertions, 0 deletions

