projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
59bd968
)
Added subst hook in dead node elimination
author
Sebastian Hack
<hack@ipd.info.uni-karlsruhe.de>
Tue, 7 Mar 2006 15:21:06 +0000
(15:21 +0000)
committer
Sebastian Hack
<hack@ipd.info.uni-karlsruhe.de>
Tue, 7 Mar 2006 15:21:06 +0000
(15:21 +0000)
[r7426]
ir/ir/irgopt.c
patch
|
blob
|
history
diff --git
a/ir/ir/irgopt.c
b/ir/ir/irgopt.c
index
7071b61
..
14867bb
100644
(file)
--- a/
ir/ir/irgopt.c
+++ b/
ir/ir/irgopt.c
@@
-250,6
+250,7
@@
static void copy_node(ir_node *n, void *env) {
#endif
set_new_node(n, nn);
#endif
set_new_node(n, nn);
+ hook_dead_node_elim_subst(current_ir_graph, n, nn);
}
/**
}
/**
@@
-505,7
+506,7
@@
dead_node_elimination(ir_graph *irg) {
struct obstack *rebirth_obst = NULL;
if (get_opt_optimize() && get_opt_dead_node_elimination()) {
struct obstack *rebirth_obst = NULL;
if (get_opt_optimize() && get_opt_dead_node_elimination()) {
- assert(! edges_activated(irg) && "dead node elimination requi
e
res disabled edges");
+ assert(! edges_activated(irg) && "dead node elimination requires disabled edges");
/* inform statistics that we started a dead-node elimination run */
hook_dead_node_elim(irg, 1);
/* inform statistics that we started a dead-node elimination run */
hook_dead_node_elim(irg, 1);