becopyopt: Reduce indirection.
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 15 Dec 2012 15:25:12 +0000 (16:25 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 15 Dec 2012 21:05:20 +0000 (22:05 +0100)
copy_opt_t already has the irg, no need to fetch the chordal_env_t first.

ir/be/becopyheur2.c
ir/be/becopyheur4.c

index 73129b3..517ec8d 100644 (file)
@@ -1041,7 +1041,7 @@ static int co_solve_heuristic_new(copy_opt_t *co)
        env.co          = co;
        env.n_regs      = co->cls->n_regs;
        env.allocatable_regs = bitset_alloca(co->cls->n_regs);
-       be_put_allocatable_regs(co->cenv->irg, co->cls, env.allocatable_regs);
+       be_put_allocatable_regs(co->irg, co->cls, env.allocatable_regs);
        FIRM_DBG_REGISTER(env.dbg, "firm.be.co2");
        INIT_LIST_HEAD(&env.cloud_head);
 
index 8c94f37..9e41f48 100644 (file)
@@ -1418,7 +1418,7 @@ static int co_solve_heuristic_mst(copy_opt_t *co)
        ir_nodemap_init(&mst_env.map, co->irg);
        obstack_init(&mst_env.obst);
 
-       be_put_allocatable_regs(co->cenv->irg, co->cls, allocatable_regs);
+       be_put_allocatable_regs(co->irg, co->cls, allocatable_regs);
 
        mst_env.n_regs           = n_regs;
        mst_env.chunks           = new_pqueue();