This is an archive of the discontinued LLVM Phabricator instance.

[ValueTracking] Use `KnownBits` functions for `computeKnownBits` of saturating add/sub functions
ClosedPublic

Authored by goldstein.w.n on May 7 2023, 11:59 PM.

Details

Summary

The knownbits implementation covers all the cases previously handled
by uadd.sat/usub.sat as well some additional ones. We previously
were not handling the ssub.sat/sadd.sat cases at all.

Diff Detail

Event Timeline

goldstein.w.n created this revision.May 7 2023, 11:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 7 2023, 11:59 PM
goldstein.w.n requested review of this revision.May 7 2023, 11:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 7 2023, 11:59 PM
RKSimon accepted this revision.May 13 2023, 4:22 AM

LGTM

This revision is now accepted and ready to land.May 13 2023, 4:22 AM
This revision was landed with ongoing or failed builds.May 23 2023, 11:57 AM
This revision was automatically updated to reflect the committed changes.