From: marxin
Date: Thu, 21 Jul 2016 16:20:42 +0200
Subject: [PATCH] predict.c: merge multi-edges
gcc/testsuite/ChangeLog:
2016-07-21 Martin Liska
* gcc.dg/predict-13.c: New test.
* gcc.dg/predict-14.c: New test.
gcc/ChangeLog:
2016-07-21 Martin Liska
* predict.c (set_even_probabilities
On 07/22/2016 05:38 AM, Martin Liška wrote:
On 07/22/2016 12:53 PM, Segher Boessenkool wrote:
Hi Martin,
On Fri, Jul 22, 2016 at 10:17:51AM +0200, Martin Liška wrote:
/* We can not predict the probabilities of outgoing edges of bb. Set them
- evenly and hope for the best. */
+ evenly an
c / 2) / c;
>> + }
>> else
>>e->probability = 0;
>> }
>
> Even in the normal case, the sum of probabilities will not be almost 1
> this way (almost REG_BR_PROB_BASE), but somewhat bigger.
>
>
> Segher
>
>From f746848bec44877173bbe9ea3b0
Hi Martin,
On Fri, Jul 22, 2016 at 10:17:51AM +0200, Martin Liška wrote:
> /* We can not predict the probabilities of outgoing edges of bb. Set them
> - evenly and hope for the best. */
> + evenly and hope for the best. If UNLIKELY_EDGES is not null, distribute
> + evel probability for a
and survives regression tests.
Ready to be installed?
Martin
>From f572b283801d99e251f95b960cbd444968b3a73d Mon Sep 17 00:00:00 2001
From: marxin
Date: Thu, 21 Jul 2016 16:20:42 +0200
Subject: [PATCH] predict.c: merge multi-edges
gcc/testsuite/ChangeLog:
2016-07-21 Martin Liska
* gcc.dg/p