beifg: Use dom_tree_walk_irg(irg, ...) instead of dom_tree_walk(get_irg_start_block...
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 5 Dec 2012 10:19:31 +0000 (11:19 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 5 Dec 2012 11:05:30 +0000 (12:05 +0100)
ir/be/beifg.c

index 514caa7..9220441 100644 (file)
@@ -270,10 +270,8 @@ static inline int get_next_clique(cliques_iter_t *it)
 int be_ifg_cliques_begin(const be_ifg_t *ifg, cliques_iter_t *it,
                          ir_node **buf)
 {
-       ir_node *start_bl = get_irg_start_block(ifg->env->irg);
-
        obstack_init(&it->ob);
-       dom_tree_walk(start_bl, get_blocks_dom_order, NULL, it);
+       dom_tree_walk_irg(ifg->env->irg, get_blocks_dom_order, NULL, it);
 
        it->cenv     = ifg->env;
        it->buf      = buf;