This is an archive of the discontinued LLVM Phabricator instance.

[ValueTracking] Add logic for `(sub x, y) != 0` if we know `KnownX != KnownY`
ClosedPublic

Authored by goldstein.w.n on Apr 25 2023, 2:30 PM.

Details

Diff Detail

Event Timeline

goldstein.w.n created this revision.Apr 25 2023, 2:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2023, 2:30 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
goldstein.w.n requested review of this revision.Apr 25 2023, 2:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2023, 2:30 PM
nikic added inline comments.Apr 25 2023, 2:45 PM
llvm/lib/Analysis/ValueTracking.cpp
2713–2726
goldstein.w.n marked an inline comment as done.

Return false if knownx is unknown

nikic accepted this revision.Apr 26 2023, 12:09 AM

LGTM

This revision is now accepted and ready to land.Apr 26 2023, 12:09 AM
This revision was landed with ongoing or failed builds.Apr 26 2023, 9:49 PM
This revision was automatically updated to reflect the committed changes.