| commit | 547183bf87bfe4a974fa1e6cea86d9a5dcf7530f | [log] [tgz] |
|---|---|---|
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Tue Apr 29 16:31:29 2014 +0000 |
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Tue Apr 29 16:31:29 2014 +0000 |
| tree | ccf5b90e7161411f600be77c873b6a40ef6533ec | |
| parent | b92de02f1744572d0a07df099da909f3204c2404 [diff] |
blockfreq: Defer to BranchProbability::scale() (again) Change `BlockFrequency` to defer to `BranchProbability::scale()` and `BranchProbability::scaleByInverse()`. This removes `BlockFrequency::scale()` from its API (and drops the ability to see the remainder), but the only user was the unit tests. If some code in the future needs an API that exposes the remainder, we can add something to `BranchProbability`, but I find that unlikely. llvm-svn: 207550