From 15342341aa4ade477abe31ccba4333d6dfc2956b Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Thu, 13 May 2004 23:10:34 +0000 Subject: [PATCH] tree-ssa-pre.c (execute_pre): Free ephi_use_pool and idfs_cache at the end of the function. 2004-05-13 Andrew Pinski * tree-ssa-pre.c (execute_pre): Free ephi_use_pool and idfs_cache at the end of the function. From-SVN: r81815 --- gcc/ChangeLog | 5 ++++- gcc/tree-ssa-pre.c | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 16e8da7..d625a52 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,9 @@ 2004-05-13 Andrew Pinski - * tree-ssa-live (calculate_live_on_entry): Free saw_def + * tree-ssa-pre.c (execute_pre): Free ephi_use_pool and + idfs_cache at the end of the function. + + * tree-ssa-live.c (calculate_live_on_entry): Free saw_def at the end of the function. * tree-ssa-dce.c (perform_tree_ssa_dce): Free diff --git a/gcc/tree-ssa-pre.c b/gcc/tree-ssa-pre.c index d3ae62c..76a9a56 100644 --- a/gcc/tree-ssa-pre.c +++ b/gcc/tree-ssa-pre.c @@ -3352,6 +3352,7 @@ execute_pre (void) memset (&pre_stats, 0, sizeof (struct pre_stats_d)); free_alloc_pool (euse_node_pool); free_alloc_pool (eref_node_pool); + free_alloc_pool (ephi_use_pool); VARRAY_CLEAR (bexprs); for (i = 0; i < currbbs; i++) BITMAP_XFREE (pre_dfs[i]); @@ -3362,6 +3363,7 @@ execute_pre (void) BITMAP_XFREE (idfs_cache[i]); free (dfn); + free (idfs_cache); } static bool -- 2.7.4