Commit 27b2c32e by Jan Hubicka Committed by Jan Hubicka

* predict.c (estimate_probability): Fix LOOP_EXIT heuristic.

From-SVN: r48010
parent 29655d3d
Fri Dec 14 22:14:44 CET 2001 Jan Hubicka <jh@suse.cz>
* predict.c (estimate_probability): Fix LOOP_EXIT heuristic.
2001-12-14 Zack Weinberg <zack@codesourcery.com> 2001-12-14 Zack Weinberg <zack@codesourcery.com>
* combine.c (record_dead_and_set_regs): Use * combine.c (record_dead_and_set_regs): Use
......
...@@ -358,7 +358,7 @@ estimate_probability (loops_info) ...@@ -358,7 +358,7 @@ estimate_probability (loops_info)
successors. */ successors. */
if (!header_found) if (!header_found)
for (e = BASIC_BLOCK(j)->succ; e; e = e->succ_next) for (e = BASIC_BLOCK(j)->succ; e; e = e->succ_next)
if (e->dest->index <= 0 if (e->dest->index < 0
|| !TEST_BIT (loop->nodes, e->dest->index)) || !TEST_BIT (loop->nodes, e->dest->index))
predict_edge (e, PRED_LOOP_EXIT, predict_edge (e, PRED_LOOP_EXIT,
(REG_BR_PROB_BASE (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