This is an archive of the discontinued LLVM Phabricator instance.

[Attributor] Implement AANoAliasCallSiteArgument initialization
ClosedPublic

Authored by uenoku on Aug 29 2019, 12:11 AM.

Details

Diff Detail

Repository
rL LLVM

Event Timeline

uenoku created this revision.Aug 29 2019, 12:11 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 29 2019, 12:11 AM
jdoerfert accepted this revision.Aug 29 2019, 6:34 AM

Small nit, otherwise LGTM.

llvm/lib/Transforms/IPO/Attributor.cpp
1597 ↗(On Diff #217782)

can't u just say hasAttr( ? Some of the CallSite getters look at the argument, other do not.

This revision is now accepted and ready to land.Aug 29 2019, 6:34 AM
uenoku marked an inline comment as done.Aug 29 2019, 11:36 AM
uenoku added inline comments.
llvm/lib/Transforms/IPO/Attributor.cpp
1597 ↗(On Diff #217782)

I think SubsumingPositionIterator will look at associatedValue when given a callsite arugment. test11 below will fail.

This revision was automatically updated to reflect the committed changes.