This is an archive of the discontinued LLVM Phabricator instance.

[Attributor] Check for noalias call in AAInstanceInfo
ClosedPublic

Authored by nikic on Jul 21 2022, 12:57 AM.

Details

Summary

TBH I don't really understand what this code is doing, but going just by naming, it seems like the relevant property of allocation functions of interest here is their uniqueness (in the sense of disjoint provenance), which is encoded by the noalias return attribute. Or does this rely on some other property of allocators as well?

Diff Detail

Event Timeline

nikic created this revision.Jul 21 2022, 12:57 AM
nikic requested review of this revision.Jul 21 2022, 12:57 AM
Herald added a reviewer: sstefan1. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
jdoerfert accepted this revision.Aug 9 2022, 10:48 AM

This looks good. I think I used allocation function elsewhere (because of default values) but that doesn't play a role here.

LG

This revision is now accepted and ready to land.Aug 9 2022, 10:48 AM
This revision was landed with ongoing or failed builds.Aug 10 2022, 1:28 AM
This revision was automatically updated to reflect the committed changes.