This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] Don't free hash tables before statistics are dumped
- From: Zdenek Dvorak <rakdver at atrey dot karlin dot mff dot cuni dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 21 Aug 2003 21:27:56 +0200
- Subject: [tree-ssa] Don't free hash tables before statistics are dumped
Hello,
commited as obvious.
Zdenek
Index: ChangeLog.tree-ssa
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/ChangeLog.tree-ssa,v
retrieving revision 1.1.2.603
diff -c -3 -p -r1.1.2.603 ChangeLog.tree-ssa
*** ChangeLog.tree-ssa 21 Aug 2003 18:33:52 -0000 1.1.2.603
--- ChangeLog.tree-ssa 21 Aug 2003 19:26:12 -0000
***************
*** 1,3 ****
--- 1,9 ----
+ 2003-08-21 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
+
+ * tree-ssa-dom.c (tree_ssa_dominator_optimize): Don't free hash tables
+ before statistics are made from them.
+ * tree-ssa.c (rewrite_into_ssa): Ditto.
+
2003-08-21 Jason Merrill <jason@redhat.com>
* tree-inline.c (copy_body_r): Don't convert when stripping &*.
Index: tree-ssa-dom.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssa-dom.c,v
retrieving revision 1.1.2.28
diff -c -3 -p -r1.1.2.28 tree-ssa-dom.c
*** tree-ssa-dom.c 20 Aug 2003 19:03:48 -0000 1.1.2.28
--- tree-ssa-dom.c 21 Aug 2003 19:26:14 -0000
*************** tree_ssa_dominator_optimize (tree fndecl
*** 192,201 ****
}
while (found_unreachable);
- htab_delete (const_and_copies);
- htab_delete (avail_exprs);
- BITMAP_XFREE (unreachable_bitmap);
-
/* Debugging dumps. */
if (dump_file)
{
--- 192,197 ----
*************** tree_ssa_dominator_optimize (tree fndecl
*** 204,209 ****
--- 200,209 ----
dump_function_to_file (fndecl, dump_file, dump_flags);
dump_end (TDI_dom, dump_file);
}
+
+ htab_delete (const_and_copies);
+ htab_delete (avail_exprs);
+ BITMAP_XFREE (unreachable_bitmap);
timevar_pop (TV_TREE_SSA_DOMINATOR_OPTS);
Index: tree-ssa.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssa.c,v
retrieving revision 1.1.4.118
diff -c -3 -p -r1.1.4.118 tree-ssa.c
*** tree-ssa.c 20 Aug 2003 03:43:02 -0000 1.1.4.118
--- tree-ssa.c 21 Aug 2003 19:26:16 -0000
*************** rewrite_into_ssa (tree fndecl, sbitmap v
*** 385,392 ****
BITMAP_XFREE (dfs[i]);
free (dfs);
sbitmap_free (globals);
- htab_delete (def_blocks);
- htab_delete (currdefs);
if (vars == NULL)
sbitmap_free (vars_to_rename);
--- 385,390 ----
*************** rewrite_into_ssa (tree fndecl, sbitmap v
*** 407,412 ****
--- 405,413 ----
dump_function_to_file (fndecl, dump_file, dump_flags);
dump_end (TDI_ssa, dump_file);
}
+
+ htab_delete (def_blocks);
+ htab_delete (currdefs);
timevar_pop (TV_TREE_SSA_OTHER);
}