This is an archive of the discontinued LLVM Phabricator instance.

[Attributor] Do not add AA to dependency graph after the update stage
ClosedPublic

Authored by okura on Aug 27 2020, 1:07 PM.

Details

Summary

If an AA is registered to the dependency graph in the manifest stage, Attributor aborts in ::manifestAttributes().
This patch prevents such termination.

Diff Detail

Event Timeline

okura created this revision.Aug 27 2020, 1:07 PM
Herald added a reviewer: homerdin. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
okura requested review of this revision.Aug 27 2020, 1:07 PM
This revision is now accepted and ready to land.Aug 27 2020, 1:08 PM
okura added a comment.Aug 27 2020, 1:11 PM

Another way to achieve the same goal is to remove the assertion in manifestAttributes.
I'm not sure which is better.

okura added a comment.Aug 27 2020, 1:14 PM

This is accepted, I'll go with this.