This is an archive of the discontinued LLVM Phabricator instance.

[ValueTracking] Allow context-sensitive nullness check for non-pointers
ClosedPublic

Authored by jdoerfert on Dec 8 2019, 8:14 PM.

Details

Summary

Same as D60846 and D69571 but with a fix for the problem encountered
after them. Both times it was a missing context adjustment in the
handling of PHI nodes.

The reproducers created from the bugs that caused the old commits to be
reverted are included.

Diff Detail

Event Timeline

jdoerfert created this revision.Dec 8 2019, 8:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2019, 8:14 PM

Build result: pass - 60603 tests passed, 0 failed and 726 were skipped.

Log files: console-log.txt, CMakeCache.txt

lebedev.ri accepted this revision.Dec 9 2019, 11:56 AM
lebedev.ri added a subscriber: lebedev.ri.

The fix makes sense to me, i've always found that CxtI very easy to get wrong..
@spatel / @nikic ?

This revision is now accepted and ready to land.Dec 9 2019, 11:56 AM
nikic accepted this revision.Dec 9 2019, 12:01 PM

LG to me as well.

This revision was automatically updated to reflect the committed changes.