* predict.c (estimate_probability): Fix LOOP_EXIT heuristic.
From-SVN: r48010
This commit is contained in:
parent
29655d3d5c
commit
27b2c32e31
|
@ -1,3 +1,7 @@
|
||||||
|
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)
|
||||||
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
|
||||||
|
|
Loading…
Reference in New Issue