On Mon, Jul 25, 2016 at 10:55 AM, Martin Liška <mli...@suse.cz> wrote:
> Hi.
>
> As discussed with Honza, we should sum all edge frequencies when a loop
> has multiple latches.
>
> Patch can bootstrap on ppc64le-redhat-linux and survives regression tests.
>
> Ready to be installed?

-       if (e->src == loop->latch)
-         freq_latch = EDGE_FREQUENCY (e);
+       if (e->src == loop->latch
+           || flow_bb_inside_loop_p (loop, e->src))
+         freq_latch += EDGE_FREQUENCY (e);

the e->src == loop->latch condition is redundant now.

Richard.

> Martin

Reply via email to