projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2749bf2
)
* predict.c (predict_loops): Do not predict infinite loops.
author
Jan Hubicka
<jh@suse.cz>
Fri, 2 Nov 2012 19:19:15 +0000
(20:19 +0100)
committer
Jan Hubicka
<hubicka@gcc.gnu.org>
Fri, 2 Nov 2012 19:19:15 +0000
(19:19 +0000)
From-SVN: r193101
gcc/ChangeLog
patch
|
blob
|
history
gcc/predict.c
patch
|
blob
|
history
diff --git
a/gcc/ChangeLog
b/gcc/ChangeLog
index 793c4933f79fb0f02472b05e908a5cecf45409e6..0f752802aeb2f778a000adadc88cbcd5801707d9 100644
(file)
--- a/
gcc/ChangeLog
+++ b/
gcc/ChangeLog
@@
-1,3
+1,7
@@
+2012-11-02 Jan Hubicka <jh@suse.cz>
+
+ * predict.c (predict_loops): Do not predict infinite loops.
+
2012-11-02 Jan Hubicka <jh@suse.cz>
PR middle-end/55079
diff --git
a/gcc/predict.c
b/gcc/predict.c
index 9fc3e71e7b28932489ebebb1a196fe139c716f2e..d27e04316ca8cfcd4dae1f67810aa9d3ef491b2c 100644
(file)
--- a/
gcc/predict.c
+++ b/
gcc/predict.c
@@
-1403,6
+1403,11
@@
predict_loops (void)
exits = get_loop_exit_edges (loop);
n_exits = VEC_length (edge, exits);
+ if (!n_exits)
+ {
+ VEC_free (edge, heap, exits);
+ continue;
+ }
FOR_EACH_VEC_ELT (edge, exits, j, ex)
{