This is an archive of the discontinued LLVM Phabricator instance.

Create a wrapper pass for MachineDominatorTree to remove pass dependence when it is only used conditionally.
AbandonedPublic

Authored by congh on Jul 31 2015, 10:44 AM.

Details

Summary

This patch adds a wrapper pass MachineDominatorTreeWrapperPass that contains MachineDominatorTree analysis, which could be done flexibly without declaring pass dependence. This is good to the compilation time: in some cases we only need to do this analysis conditionally (like in MachineBlockPlacement in this patch). This is quite similar to the wrapper pass for DominatorTree.

Most changes are mechanical due to the name and usage changes.

Diff Detail

Event Timeline

congh updated this revision to Diff 31132.Jul 31 2015, 10:44 AM
congh retitled this revision from to Create a wrapper pass for MachineDominatorTree to remove pass dependence when it is only used conditionally..
congh updated this object.
congh added reviewers: dexonsmith, dblaikie.
congh added subscribers: llvm-commits, davidxl.
congh abandoned this revision.Aug 7 2015, 10:36 AM