diff options
author | Sanjay Patel <spatel@rotateright.com> | 2018-07-31 13:00:03 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2018-07-31 13:00:03 +0000 |
commit | 9a801cb598cf42dd3dccc6bd370b78692e239606 (patch) | |
tree | 5606af021e59d44d322c9559dd039e611ad3de63 /llvm/lib/Object/RecordStreamer.cpp | |
parent | a592adbbc4a650a27afd239acdd6d793f008f655 (diff) | |
download | bcm5719-llvm-9a801cb598cf42dd3dccc6bd370b78692e239606.tar.gz bcm5719-llvm-9a801cb598cf42dd3dccc6bd370b78692e239606.zip |
[InstCombine] simplify code for A & (A ^ B) --> A & ~B
This fold was written in an odd way and tried to avoid
an endless loop by bailing out on all constants instead
of the supposedly problematic case of -1. But (X & -1)
should always be simplified before we reach here, so I'm
not sure how that is a problem.
There were no tests for the commuted patterns, so I added
those at rL338364.
llvm-svn: 338367
Diffstat (limited to 'llvm/lib/Object/RecordStreamer.cpp')
0 files changed, 0 insertions, 0 deletions