summaryrefslogtreecommitdiff
path: root/gcc/predict.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-02 22:42:31 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-02 22:42:31 +0000
commitdcd8fd01d0a151b20b65ea6bbef6590dc042f953 (patch)
tree1c920bceeac5ffd62788c5e2ffe2669129d020bc /gcc/predict.c
parentf2c17d01513786ba2e312afa3d07f6a6337662cb (diff)
downloadgcc-dcd8fd01d0a151b20b65ea6bbef6590dc042f953.tar.gz
2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
* c-typeck.c (finish_init): Free spelling_base before setting it again. * cfgloop.c (flow_loops_find): Always free the sbitmap headers. * predict.c (estimate_probability): Free bbs after being done with it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75337 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/predict.c')
-rw-r--r--gcc/predict.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/predict.c b/gcc/predict.c
index 74a1f24c3ad..0cba3a5f91e 100644
--- a/gcc/predict.c
+++ b/gcc/predict.c
@@ -467,6 +467,9 @@ estimate_probability (struct loops *loops_info)
- predictor_info [(int) PRED_LOOP_EXIT].hitrate)
/ exits);
}
+
+ /* Free basic blocks from get_loop_body. */
+ free (bbs);
}
/* Attempt to predict conditional jumps using a number of heuristics. */