[llvm] r254348 - Replace all weight-based interfaces in MBB with probability-based interfaces, and update all uses of old interfaces.

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 30 16:51:29 PST 2015


On Mon, Nov 30, 2015 at 4:02 PM, Cong Hou via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> Author: conghou
> Date: Mon Nov 30 18:02:51 2015
> New Revision: 254348
>
> URL: http://llvm.org/viewvc/llvm-project?rev=254348&view=rev
> Log:
> Replace all weight-based interfaces in MBB with probability-based interfaces, and update all uses of old interfaces.

[...]

> @@ -43,6 +46,19 @@ BranchProbability::BranchProbability(uin
>    }
>  }
>
> +BranchProbability
> +BranchProbability::getBranchProbability(uint64_t Numerator,
> +                                        uint64_t Denominator) {
> +  assert(Numerator <= Denominator && "Probability cannot be bigger than 1!");

We hit this assert pretty early in a Chromium build:

http://build.chromium.org/p/chromium.fyi/builders/ClangToTWin/builds/5080/steps/compile/logs/stdio

I'll see if I can extract a reproducer.


More information about the llvm-commits mailing list