This is an archive of the discontinued LLVM Phabricator instance.

[PGO] Set edge weights for indirectbr instruction with profile counts
ClosedPublic

Authored by xur on Aug 23 2017, 11:48 AM.

Details

Summary

Current PGO only annotates the edge weight for branch and switch instructions with profile counts. We should also annotate the indirectbr instruction as all the information is there.
This patch enables the annotating for indirectbr instructions. Also uses this annotation in branch probability analysis.

Diff Detail

Event Timeline

xur created this revision.Aug 23 2017, 11:48 AM
davidxl added inline comments.Aug 23 2017, 11:53 AM
test/Transforms/PGOProfile/indirectbr.ll
8

Are these needed?

xur updated this revision to Diff 112420.Aug 23 2017, 12:30 PM
xur edited the summary of this revision. (Show Details)
xur updated this revision to Diff 112424.Aug 23 2017, 12:38 PM
xur added inline comments.
test/Transforms/PGOProfile/indirectbr.ll
8

probably not, but not of the .ll tests in that test directory have this triple.

This revision is now accepted and ready to land.Aug 23 2017, 12:59 PM
This revision was automatically updated to reflect the committed changes.