Commit 82d68d46 by Jan Hubicka Committed by Jan Hubicka

predict.c (estimate_bb_frequencies): Do not reload the frequencies from notes.

	* predict.c (estimate_bb_frequencies): Do not reload the
	frequencies from notes.

From-SVN: r50356
parent 3dec4024
Wed Mar 6 11:28:19 CET 2002 Jan Hubicka <jh@suse.cz>
* predict.c (estimate_bb_frequencies): Do not reload the
frequencies from notes.
Wed Mar 6 10:59:39 CET 2002 Jan Hubicka <jh@suse.cz>
* cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
......
......@@ -897,20 +897,6 @@ estimate_bb_frequencies (loops)
for (e = BASIC_BLOCK (i)->succ; e; e = e->succ_next)
e->probability = (REG_BR_PROB_BASE + nedges / 2) / nedges;
}
else
{
probability = INTVAL (XEXP (find_reg_note (last_insn,
REG_BR_PROB, 0), 0));
fallthru = BASIC_BLOCK (i)->succ;
if (!fallthru->flags & EDGE_FALLTHRU)
fallthru = fallthru->succ_next;
branch = BASIC_BLOCK (i)->succ;
if (branch->flags & EDGE_FALLTHRU)
branch = branch->succ_next;
branch->probability = probability;
fallthru->probability = REG_BR_PROB_BASE - probability;
}
}
ENTRY_BLOCK_PTR->succ->probability = REG_BR_PROB_BASE;
......
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