summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-23 00:55:52 +0000
committerChris Lattner <sabre@nondot.org>2005-09-23 00:55:52 +0000
commit59a05bdde6b77ec1f76e4de805c032cce3e552ee (patch)
treead9272bce7780fd9036ea905662cea743581a80f /llvm/lib/Transforms/Utils/SimplifyCFG.cpp
parentc619d4315525d9cab9008a8099000020e2653f29 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud