This is an archive of the discontinued LLVM Phabricator instance.

[AA] byval argument is identified function local
ClosedPublic

Authored by nikic on Dec 20 2020, 1:05 PM.

Details

Summary

I believe that as far as alias analysis is concerned, byval arguments should get the same (or stronger) treatment as noalias arguments, which was not the case for the isIdentifiedFunctionLocal() function. Marking byval arguments as identified function local means that they cannot alias with any other arguments, which I believe is correct.

Diff Detail

Event Timeline

nikic created this revision.Dec 20 2020, 1:05 PM
nikic requested review of this revision.Dec 20 2020, 1:05 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 20 2020, 1:05 PM
jdoerfert accepted this revision.Dec 20 2020, 3:35 PM

I think the logic is sound. LGTM

This revision is now accepted and ready to land.Dec 20 2020, 3:35 PM
This revision was automatically updated to reflect the committed changes.