OSDN Git Service

* tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Feb 2005 15:11:06 +0000 (15:11 +0000)
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Feb 2005 15:11:06 +0000 (15:11 +0000)
(rewrite_into_ssa): ... here.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95395 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-into-ssa.c

index fa37096..83a8a0f 100644 (file)
@@ -1,3 +1,8 @@
+2005-02-22  Diego Novillo  <dnovillo@redhat.com>
+
+       * tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
+       (rewrite_into_ssa): ... here.
+
 2005-02-21  Alexandre Oliva  <aoliva@redhat.com>
 
        PR tree-optimization/19786
 2005-02-21  Alexandre Oliva  <aoliva@redhat.com>
 
        PR tree-optimization/19786
index 0c4f80a..0522947 100644 (file)
@@ -1477,7 +1477,15 @@ rewrite_blocks (bool fix_virtual_phis)
   /* Finalize the dominator walker.  */
   fini_walk_dominator_tree (&walk_data);
 
   /* Finalize the dominator walker.  */
   fini_walk_dominator_tree (&walk_data);
 
+  /* Debugging dumps.  */
+  if (dump_file && (dump_flags & TDF_STATS))
+    {
+      dump_dfa_stats (dump_file);
+      dump_tree_ssa_stats (dump_file);
+    }
+
   htab_delete (def_blocks);
   htab_delete (def_blocks);
+  def_blocks = NULL;
   
   VEC_free (tree_on_heap, block_defs_stack);
   block_defs_stack = NULL;
   
   VEC_free (tree_on_heap, block_defs_stack);
   block_defs_stack = NULL;
@@ -1611,13 +1619,6 @@ rewrite_into_ssa (bool all)
 
   rewrite_blocks (false);
 
 
   rewrite_blocks (false);
 
-  /* Debugging dumps.  */
-  if (dump_file && (dump_flags & TDF_STATS))
-    {
-      dump_dfa_stats (dump_file);
-      dump_tree_ssa_stats (dump_file);
-    }
-
   /* Free allocated memory.  */
   FOR_EACH_BB (bb)
     BITMAP_FREE (dfs[bb->index]);
   /* Free allocated memory.  */
   FOR_EACH_BB (bb)
     BITMAP_FREE (dfs[bb->index]);