This is an archive of the discontinued LLVM Phabricator instance.

[Lint] Permit aliasing noalias readonly arguments
ClosedPublic

Authored by cuviper on Apr 3 2019, 4:19 PM.

Details

Summary

If two arguments are both readonly, then they have no memory dependency
that would violate noalias, even if they do actually overlap.

Event Timeline

cuviper created this revision.Apr 3 2019, 4:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 3 2019, 4:19 PM

Ping for review, please.

efriedma accepted this revision.Apr 23 2019, 1:36 PM
efriedma added a subscriber: efriedma.

LGTM. It seems easy to trigger false positives with this lint, so I'm not sure how useful it is in general, but this is clearly an improvement.

This revision is now accepted and ready to land.Apr 23 2019, 1:36 PM
This revision was automatically updated to reflect the committed changes.