This is an archive of the discontinued LLVM Phabricator instance.

Tune the weight propagation algorithm for sample profile.
ClosedPublic

Authored by danielcdh on Jul 8 2016, 4:03 PM.

Details

Summary

Handle the case when there is only one incoming/outgoing edge for a visited basic block: use the block weight to adjust edge weight even when the edge has been visited before. This can help reduce inaccuracies introduced by incorrect basic block profile, as shown in the updated unittest.

Diff Detail

Event Timeline

danielcdh updated this revision to Diff 63348.Jul 8 2016, 4:03 PM
danielcdh retitled this revision from to Tune the weight propagation algorithm for sample profile..
danielcdh updated this object.
danielcdh added reviewers: davidxl, dnovillo.
danielcdh added a subscriber: llvm-commits.
dnovillo accepted this revision.Jul 11 2016, 6:27 AM
dnovillo edited edge metadata.

LGTM. Thanks.

This revision is now accepted and ready to land.Jul 11 2016, 6:27 AM
danielcdh closed this revision.Jul 11 2016, 9:47 AM