[Bug middle-end/59521] __builtin_expect not effective in switch

tetra2005 at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Jul 11 09:38:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59521

--- Comment #7 from Yuri Gribov <tetra2005 at gmail dot com> ---
(In reply to Martin Liška from comment #5)
> Apart from that I added code that preserves
> that probability in combine_predictions_for_bb.

Yes, I did pretty much the same locally)

> But still there's a missing piece that will rearrange switch statement so
> that case 333 will be first:

Right, I'll take it from there then.


More information about the Gcc-bugs mailing list