On 7/4/19 6:02 PM, Jan Hubicka wrote:
> perhaps we want to also document that builtin-expect can be used this way?
> It owuld be also nice to have a testcase.
Good idea! I'm going to install the following patch.
Martin
>From 6b59938eff83600ae237409de027040b7904f66d Mon Sep 17 00:00:00 2001
From:
> Hi.
>
> The patch makes a loop upper bound estimation based on
> __builtin_expect_with_probability.
>
> Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
>
> The patch is pre-approved by Honza.
> Thanks,
> Martin
>
> gcc/ChangeLog:
>
> 2019-07-04 Martin Liska
>
>
Hi.
The patch makes a loop upper bound estimation based on
__builtin_expect_with_probability.
Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
The patch is pre-approved by Honza.
Thanks,
Martin
gcc/ChangeLog:
2019-07-04 Martin Liska
* tree-ssa-loop-niter.c
(