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:
parent
3904572bee
commit
9aad8d9385
@ -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.
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user