* predict.c (estimate_probability): Fix LOOP_EXIT heuristic.
From-SVN: r48010
This commit is contained in:
parent
29655d3d5c
commit
27b2c32e31
2 changed files with 5 additions and 1 deletions
|
@ -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>
|
||||
|
||||
* combine.c (record_dead_and_set_regs): Use
|
||||
|
|
|
@ -358,7 +358,7 @@ estimate_probability (loops_info)
|
|||
successors. */
|
||||
if (!header_found)
|
||||
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))
|
||||
predict_edge (e, PRED_LOOP_EXIT,
|
||||
(REG_BR_PROB_BASE
|
||||
|
|
Loading…
Add table
Reference in a new issue