Fix probabilities for jump table (PR tree-optimization/86702).
commitcb0d0bb08125cf8ec6569afa13fbfce17fa96283
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Aug 2018 12:17:54 +0000 (27 12:17 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 27 Aug 2018 12:17:54 +0000 (27 12:17 +0000)
tree5c8f893e4a884022f9007c23ad181990fb45cdce
parent0fb4f2ced42a4f2ee50fe81ebeb1d09c43e94069
Fix probabilities for jump table (PR tree-optimization/86702).

2018-08-27  Martin Liska  <mliska@suse.cz>

        PR tree-optimization/86702
* tree-switch-conversion.c (jump_table_cluster::emit):
        Make probabilities even for values in jump table
        according to number of cases handled.
(switch_decision_tree::compute_cases_per_edge): Pass
        argument to reset_out_edges_aux function.
(switch_decision_tree::analyze_switch_statement): Likewise.
* tree-switch-conversion.h (switch_decision_tree::reset_out_edges_aux):
        Make it static.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@263877 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-switch-conversion.c
gcc/tree-switch-conversion.h