Re: [PATCHv3][PR 59521] Respect __builtin_expect in switch statements

2018-09-03 Thread Martin Liška
On 08/31/2018 03:10 PM, Jan Hubicka wrote: >> >> 2018-08-23 Martin Liska >> >> PR middle-end/59521 >> * predict.c (set_even_probabilities): Add likely_edges >> argument and handle cases where we have precisely one >> likely edge. >> (combine_predictions_for_bb): Catch

Re: [PATCHv3][PR 59521] Respect __builtin_expect in switch statements

2018-08-31 Thread Jan Hubicka
> > 2018-08-23 Martin Liska > > PR middle-end/59521 > * predict.c (set_even_probabilities): Add likely_edges > argument and handle cases where we have precisely one > likely edge. > (combine_predictions_for_bb): Catch also likely_edges. > (tree_predict_by_op

[PATCHv3][PR 59521] Respect __builtin_expect in switch statements

2018-08-27 Thread Martin Liška
Hello. I'm sending updated version of the patch that is now built on top of recent switch expansion changes. Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. Ready to be installed? Martin >From 1e362576dacb8a601f3362e033a725c234f6bc7c Mon Sep 17 00:00:00 2001 From: marx