This is an archive of the discontinued LLVM Phabricator instance.

[ValueTracking] Dereferenceable and !NullPointerIsDefined imply non-zero
ClosedPublic

Authored by StephenFan on Aug 7 2023, 12:15 AM.

Diff Detail

Event Timeline

StephenFan created this revision.Aug 7 2023, 12:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2023, 12:15 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
StephenFan requested review of this revision.Aug 7 2023, 12:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2023, 12:15 AM
nikic added a comment.Aug 7 2023, 1:31 AM

This needs a rebase.

goldstein.w.n added inline comments.
llvm/test/Transforms/InstSimplify/icmp.ll
279

These tests should be precommited.

nikic added inline comments.Aug 8 2023, 11:25 PM
llvm/lib/Analysis/ValueTracking.cpp
2710–2718

Move this behind the PointerType check as well.

StephenFan added inline comments.Aug 9 2023, 10:24 PM
llvm/test/Transforms/InstSimplify/icmp.ll
279

Thanks for pointing it out. I will precommit it before landing.

nikic accepted this revision.Aug 10 2023, 12:01 AM

LGTM

This revision is now accepted and ready to land.Aug 10 2023, 12:01 AM