This is an archive of the discontinued LLVM Phabricator instance.

[Support] Simplify KnownBits::icmp helpers. NFC.
ClosedPublic

Authored by foad on Jan 13 2021, 5:53 AM.

Details

Summary

Remove some special cases that aren't really any simpler than the
general case.

Diff Detail

Event Timeline

foad created this revision.Jan 13 2021, 5:53 AM
foad requested review of this revision.Jan 13 2021, 5:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 13 2021, 5:53 AM
RKSimon added inline comments.Jan 13 2021, 7:11 AM
llvm/lib/Support/KnownBits.cpp
273–274

Is this still worth keeping?

foad added inline comments.Jan 13 2021, 7:22 AM
llvm/lib/Support/KnownBits.cpp
273–274

Yes, it's the only way we can ever return true.

RKSimon added inline comments.Jan 13 2021, 8:24 AM
llvm/lib/Support/KnownBits.cpp
273–274

eek - sorry about that!

RKSimon accepted this revision.Jan 14 2021, 5:54 AM

LGTM

This revision is now accepted and ready to land.Jan 14 2021, 5:54 AM
This revision was automatically updated to reflect the committed changes.