Added istatistic hooks for dead node elimination
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 1 Jun 2004 09:16:31 +0000 (09:16 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 1 Jun 2004 09:16:31 +0000 (09:16 +0000)
[r2979]

ir/ir/irgopt.c

index 09ac52c..cce8004 100644 (file)
@@ -428,6 +428,8 @@ dead_node_elimination(ir_graph *irg) {
   struct obstack *graveyard_obst = NULL;
   struct obstack *rebirth_obst   = NULL;
 
+  stat_dead_node_elim_start(irg);
+
   /* Remember external state of current_ir_graph. */
   rem = current_ir_graph;
   current_ir_graph = irg;
@@ -464,6 +466,8 @@ dead_node_elimination(ir_graph *irg) {
     xfree (graveyard_obst);           /* ... then free it.           */
   }
 
+  stat_dead_node_elim_stop(irg);
+
   current_ir_graph = rem;
   interprocedural_view = rem_ipview;
 }