Page MenuHomePhabricator

[BFI] Use rounding while computing profile counts.
ClosedPublic

Authored by eraman on Aug 15 2018, 5:10 PM.

Details

Summary

Profile count of a block is computed by multiplying its block frequency
by entry count and dividing the result by entry block frequency. Do
rounded division in the last step and update test cases appropriately.

Diff Detail

Repository
rL LLVM

Event Timeline

eraman created this revision.Aug 15 2018, 5:10 PM
davidxl accepted this revision.Aug 15 2018, 5:13 PM

lgtm

This revision is now accepted and ready to land.Aug 15 2018, 5:13 PM
This revision was automatically updated to reflect the committed changes.