cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff errors.

* cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
	errors.

From-SVN: r56184
This commit is contained in:
Jan Hubicka 2002-08-10 20:00:54 +02:00 committed by Jan Hubicka
parent 3ebf520442
commit 77abb5d87d
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,9 @@
Sat Aug 10 19:59:43 CEST 2002 Jan Hubicka <jh@suse.cz>
Graham Stott
* cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
errors.
2002-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,

View File

@ -455,6 +455,8 @@ redirect_edge_succ_nodup (e, new_succ)
{
s->flags |= e->flags;
s->probability += e->probability;
if (s->probability > REG_BR_PROB_BASE)
s->probability = REG_BR_PROB_BASE;
s->count += e->count;
remove_edge (e);
e = s;