[llvm] r194950 - [block-freq] Add BlockFrequency::scale that returns a remainder from the division and make the private scale in BlockFrequency more performant.
chandlerc at google.com
Sat Nov 16 19:56:04 PST 2013
On Sat, Nov 16, 2013 at 7:25 PM, Michael Gottesman <mgottesman at apple.com>wrote:
> + /// \brief Scale the given BlockFrequency by N/D. Return the remainder
> + /// the division by D. Upon overflow, the routine will saturate.
> + uint32_t scale(const BranchProbability &Prob);
There is no N or D here really. I would explain this more in terms of Prob?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-commits