r263877 - in /trunk/gcc: ChangeLog tree-switch-...
marxin@gcc.gnu.org
marxin@gcc.gnu.org
Mon Aug 27 12:17:00 GMT 2018
Author: marxin
Date: Mon Aug 27 12:17:54 2018
New Revision: 263877
URL: https://gcc.gnu.org/viewcvs?rev=263877&root=gcc&view=rev
Log:
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.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/tree-switch-conversion.c
trunk/gcc/tree-switch-conversion.h
More information about the Gcc-cvs
mailing list