Patch by Alexander Monakov <amonakov@ispras.ru>

Patch by Alexander Monakov <amonakov@ispras.ru>
	* sel-sched-ir.c (compute_succs_info): Handle uninitialized
	probabilities consistently.

From-SVN: r249864
This commit is contained in:
Jan Hubicka 2017-07-01 09:47:22 +02:00 committed by Jan Hubicka
parent 3904572bee
commit 9aad8d9385
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,6 @@
2017-06-29 Jan Hubicka <hubicka@ucw.cz>
Patch by Alexander Monakov <amonakov@ispras.ru>
* sel-sched-ir.c (compute_succs_info): Handle uninitialized
probabilities consistently.

View File

@ -4747,9 +4747,11 @@ compute_succs_info (insn_t insn, short flags)
sinfo->probs_ok.safe_push (
/* FIXME: Improve calculation when skipping
inner loop to exits. */
si.bb_end && si.e1->probability.initialized_p ()
? si.e1->probability.to_reg_br_prob_base ()
: 0);
si.bb_end
? (si.e1->probability.initialized_p ()
? si.e1->probability.to_reg_br_prob_base ()
: 0)
: REG_BR_PROB_BASE);
sinfo->succs_ok_n++;
}
else