projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d87ce17
)
Added istatistic hooks for dead node elimination
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Tue, 1 Jun 2004 09:16:31 +0000
(09:16 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Tue, 1 Jun 2004 09:16:31 +0000
(09:16 +0000)
[r2979]
ir/ir/irgopt.c
patch
|
blob
|
history
diff --git
a/ir/ir/irgopt.c
b/ir/ir/irgopt.c
index
09ac52c
..
cce8004
100644
(file)
--- a/
ir/ir/irgopt.c
+++ b/
ir/ir/irgopt.c
@@
-428,6
+428,8
@@
dead_node_elimination(ir_graph *irg) {
struct obstack *graveyard_obst = NULL;
struct obstack *rebirth_obst = NULL;
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;
/* 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. */
}
xfree (graveyard_obst); /* ... then free it. */
}
+ stat_dead_node_elim_stop(irg);
+
current_ir_graph = rem;
interprocedural_view = rem_ipview;
}
current_ir_graph = rem;
interprocedural_view = rem_ipview;
}