This is an archive of the discontinued LLVM Phabricator instance.

[ValueTracking] Add logic for `add nuw x,y != 0` -> `x != 0 || y != 0`
ClosedPublic

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

Details

Summary

Alive2 Link:

https://alive2.llvm.org/ce/z/TKpqxc

Diff Detail

Event Timeline

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

Return NUW case unconditionally

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

LGTM

This revision is now accepted and ready to land.Apr 26 2023, 12:10 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.