diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-21 11:48:42 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-21 11:48:42 +0000 |
commit | 78d53e33ea16afb990b4281e52baf74ce9dc0f47 (patch) | |
tree | 1a86ea46dfeb996cb6319c790537e709944defa5 /gcc/tree-into-ssa.c | |
parent | 4d039f231550ffde8283afc1d3641634b75cd561 (diff) | |
download | gcc-78d53e33ea16afb990b4281e52baf74ce9dc0f47.tar.gz |
2012-08-21 Richard Guenther <rguenther@suse.de>
* tree-ssa-loop-im.c (tree_ssa_lim_finalize): Properly free
the affine expansion cache.
* tree-ssa-dom.c (free_expr_hash_elt_contents): New function,
split out from ...
(free_expr_hash_elt): ... this one.
(record_cond): Properly free a not needed hashtable element.
(lookup_avail_expr): Likewise.
* tree-into-ssa.c (init_ssa_renamer): Specify a free function
for the var_infos hashtable.
(update_ssa): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190560 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-into-ssa.c')
-rw-r--r-- | gcc/tree-into-ssa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-into-ssa.c b/gcc/tree-into-ssa.c index 8365ee1074a..d1fb1924192 100644 --- a/gcc/tree-into-ssa.c +++ b/gcc/tree-into-ssa.c @@ -2291,7 +2291,7 @@ init_ssa_renamer (void) /* Allocate memory for the DEF_BLOCKS hash table. */ gcc_assert (var_infos == NULL); var_infos = htab_create (VEC_length (tree, cfun->local_decls), - var_info_hash, var_info_eq, NULL); + var_info_hash, var_info_eq, free); bitmap_obstack_initialize (&update_ssa_obstack); } @@ -3170,7 +3170,7 @@ update_ssa (unsigned update_flags) { /* If we rename bare symbols initialize the mapping to auxiliar info we need to keep track of. */ - var_infos = htab_create (47, var_info_hash, var_info_eq, NULL); + var_infos = htab_create (47, var_info_hash, var_info_eq, free); /* If we have to rename some symbols from scratch, we need to start the process at the root of the CFG. FIXME, it should |