This is an archive of the discontinued LLVM Phabricator instance.

Create a wrapper pass for BranchProbabilityInfo so that branch probability analysis can be done without requiring a pass.
ClosedPublic

Authored by congh on Jul 15 2015, 2:14 PM.

Details

Reviewers
congh
dexonsmith
Summary

This patch is similar to the one adding a wrapper to BlockFrequencyInfo. The patch creates a wrapper pass for BranchProbabilityInfo. This is useful when we want to do branch probability analysis conditionally (e.g. only in PGO mode) but don't want to add one more pass dependence.

Diff Detail

Event Timeline

congh updated this revision to Diff 29829.Jul 15 2015, 2:14 PM
congh retitled this revision from to Create a wrapper pass for BranchProbabilityInfo so that branch probability analysis can be done without requiring a pass..
congh updated this object.
congh added a reviewer: dexonsmith.
congh added subscribers: llvm-commits, davidxl.
congh accepted this revision.Aug 7 2015, 10:39 AM
congh added a reviewer: congh.

This patch is already in the trunk, which was accepted by dexonsmith in email.

This revision is now accepted and ready to land.Aug 7 2015, 10:39 AM
congh closed this revision.Aug 7 2015, 10:39 AM