Commit 77abb5d8 by Jan Hubicka Committed by Jan Hubicka

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
parent 3ebf5204
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> 2002-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* emit-rtl.c (emit_jump_insn_before, emit_call_insn_before, * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
......
...@@ -455,6 +455,8 @@ redirect_edge_succ_nodup (e, new_succ) ...@@ -455,6 +455,8 @@ redirect_edge_succ_nodup (e, new_succ)
{ {
s->flags |= e->flags; s->flags |= e->flags;
s->probability += e->probability; s->probability += e->probability;
if (s->probability > REG_BR_PROB_BASE)
s->probability = REG_BR_PROB_BASE;
s->count += e->count; s->count += e->count;
remove_edge (e); remove_edge (e);
e = s; e = s;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment