From 3904572beee69258ebd87adbc16b17e3228da35f Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 1 Jul 2017 09:44:45 +0200 Subject: [PATCH] sel-sched-ir.c (compute_succs_info): Handle uninitialized probabilities consistently. * sel-sched-ir.c (compute_succs_info): Handle uninitialized probabilities consistently. From-SVN: r249863 --- gcc/ChangeLog | 5 +++++ gcc/sel-sched-ir.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1df0a7166b7..525c2c4b93f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-06-29 Jan Hubicka + + * sel-sched-ir.c (compute_succs_info): Handle uninitialized + probabilities consistently. + 2017-06-29 Jan Hubicka * pa.c (pa_expand_compare_and_swap_loop): Update call of diff --git a/gcc/sel-sched-ir.c b/gcc/sel-sched-ir.c index dd72828795d..e78d30999a8 100644 --- a/gcc/sel-sched-ir.c +++ b/gcc/sel-sched-ir.c @@ -4749,7 +4749,7 @@ compute_succs_info (insn_t insn, short flags) inner loop to exits. */ si.bb_end && si.e1->probability.initialized_p () ? si.e1->probability.to_reg_br_prob_base () - : REG_BR_PROB_BASE); + : 0); sinfo->succs_ok_n++; } else -- 2.30.2