aboutsummaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2001-12-14 22:28:49 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2001-12-14 21:28:49 +0000
commit27b2c32e31da807ee1c01e371447db238c7ad02c (patch)
treed3d53a4f2f4808f7b7c2ce3faf2229a8ebc9b463 /gcc/predict.c
parent29655d3d5ca71f80c77c3b996447298456aecc4a (diff)
downloadgcc-27b2c32e31da807ee1c01e371447db238c7ad02c.zip
gcc-27b2c32e31da807ee1c01e371447db238c7ad02c.tar.gz
gcc-27b2c32e31da807ee1c01e371447db238c7ad02c.tar.bz2
* predict.c (estimate_probability): Fix LOOP_EXIT heuristic.
From-SVN: r48010
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index 92b956b..44142c0 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -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