summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Object/RecordStreamer.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-07-31 13:00:03 +0000
committerSanjay Patel <spatel@rotateright.com>2018-07-31 13:00:03 +0000
commit9a801cb598cf42dd3dccc6bd370b78692e239606 (patch)
tree5606af021e59d44d322c9559dd039e611ad3de63 /llvm/lib/Object/RecordStreamer.cpp
parenta592adbbc4a650a27afd239acdd6d793f008f655 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud