This is an archive of the discontinued LLVM Phabricator instance.

Fix LoopAccessAnalysis when potentially nullptr check are involved
ClosedPublic

Authored by mehdi_amini on Nov 4 2015, 6:14 PM.

Details

Reviewers
anemet
Summary

GetUnderlyingObjects() can return "null" among its list of objects,
we don't want to deduce that two pointers can point to the same
memory in this case, so filter it out.

Diff Detail

Event Timeline

mehdi_amini updated this revision to Diff 39300.Nov 4 2015, 6:14 PM
mehdi_amini retitled this revision from to Fix LoopAccessAnalysis when potentially nullptr check are involved.
mehdi_amini updated this object.
mehdi_amini added a reviewer: anemet.
mehdi_amini added subscribers: dexonsmith, llvm-commits.
anemet accepted this revision.Nov 4 2015, 9:19 PM
anemet edited edge metadata.

LGTM with the comments. Thanks for the fix!

lib/Analysis/LoopAccessAnalysis.cpp
748–750

No {}

test/Analysis/LoopAccessAnalysis/nullptr.ll
2

space after ;

Also a sentence of what this is trying to test would be useful.

This revision is now accepted and ready to land.Nov 4 2015, 9:19 PM
mehdi_amini updated this revision to Diff 39316.Nov 4 2015, 9:53 PM
mehdi_amini edited edge metadata.

Update to commited revision (r252149)

mehdi_amini closed this revision.Nov 4 2015, 9:53 PM