This is an archive of the discontinued LLVM Phabricator instance.

[Attributor] Preserve BBs and instructions added in AA manifests
ClosedPublic

Authored by ggeorgakoudis on Jul 20 2021, 10:34 AM.

Details

Summary

Manifesting AbstractAttributes may add new BBs in the IR. This patch provides an interface to register those BBs in the Attributor so that those BBs and containing instructions are not deleted as dead.

Diff Detail

Event Timeline

ggeorgakoudis created this revision.Jul 20 2021, 10:34 AM
ggeorgakoudis requested review of this revision.Jul 20 2021, 10:34 AM
Herald added a reviewer: sstefan1. · View Herald Transcript
Herald added a reviewer: baziotis. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
jdoerfert accepted this revision.Jul 20 2021, 12:44 PM

LG, Please add registerManifestAddedBasicBlock into the AAKernelInfo when we create the new state machine.

This revision is now accepted and ready to land.Jul 20 2021, 12:44 PM

And also add a commit message explaining this.

Fix for comments

ggeorgakoudis edited the summary of this revision. (Show Details)Jul 21 2021, 10:32 AM
This revision was landed with ongoing or failed builds.Jul 21 2021, 11:27 AM
This revision was automatically updated to reflect the committed changes.