projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29655d3
)
* predict.c (estimate_probability): Fix LOOP_EXIT heuristic.
author
Jan Hubicka
<jh@suse.cz>
Fri, 14 Dec 2001 21:28:49 +0000
(22:28 +0100)
committer
Jan Hubicka
<hubicka@gcc.gnu.org>
Fri, 14 Dec 2001 21:28:49 +0000
(21:28 +0000)
From-SVN: r48010
gcc/ChangeLog
patch
|
blob
|
history
gcc/predict.c
patch
|
blob
|
history
diff --git
a/gcc/ChangeLog
b/gcc/ChangeLog
index e013d73051c58aec4d0a1738ef893b7e0c583b70..6b54c2d40ecf2ec924612a82bae53179d13fbe9c 100644
(file)
--- a/
gcc/ChangeLog
+++ b/
gcc/ChangeLog
@@
-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
diff --git
a/gcc/predict.c
b/gcc/predict.c
index 92b956b6cc81489ebd6654cd57a26275b3083383..44142c0380ab48715886dc09d372dc8626e26c0b 100644
(file)
--- 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