[Bug middle-end/59521] __builtin_expect not effective in switch
tetra2005 at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri Jul 7 05:42:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59521
Yuri Gribov <tetra2005 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tetra2005 at gmail dot com
--- Comment #2 from Yuri Gribov <tetra2005 at gmail dot com> ---
Created attachment 41698
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41698&action=edit
Draft patch (not working)
This can be added easily but I ran into a block in combine_predictions_for_bb
which resets predictions whenever block has more than one outgoing edge and
predictor is not strong enough (like e.g. noreturn predictor).
More information about the Gcc-bugs
mailing list