summaryrefslogtreecommitdiffhomepage
path: root/ir/be/besched.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-07-02 18:58:17 +0200
committerMatthias Braun <matze@braunis.de>2010-07-02 18:58:17 +0200
commit18814151f8c0ea17b2a7bf84c82ee3c2e66d6a6b (patch)
tree6cff8b83ad82376aa997841e70c0174cc8735ac2 /ir/be/besched.c
parent69849fc8fe452350bfbd2ad67f1898147fc906b4 (diff)
change spiller and related interface to use ir_graph* instead of be_irg_t*
[r27691]
Diffstat (limited to 'ir/be/besched.c')
-rw-r--r--ir/be/besched.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/ir/be/besched.c b/ir/be/besched.c
index ef64e39..6fa533e 100644
--- a/ir/be/besched.c
+++ b/ir/be/besched.c
@@ -156,14 +156,12 @@ static void remove_dead_nodes_walker(ir_node *block, void *data)
}
}
-void be_remove_dead_nodes_from_schedule(be_irg_t *birg)
+void be_remove_dead_nodes_from_schedule(ir_graph *irg)
{
- ir_graph *irg = be_get_birg_irg(birg);
-
remove_dead_nodes_env_t env;
env.reachable = bitset_alloca(get_irg_last_idx(irg));
- env.lv = be_get_irg_liveness(irg);
- env.irg = irg;
+ env.lv = be_get_irg_liveness(irg);
+ env.irg = irg;
// mark all reachable nodes
irg_walk_graph(irg, mark_dead_nodes_walker, NULL, &env);