X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbessaconstr.c;h=605cf587671c5015a7f88993b6f18dec33543be1;hb=780d1704bdcc2332c68a5161cfaa0f15cee9c352;hp=e12f27357ea1cd2c90ab9cd6fc6dcd610c759ef4;hpb=1a26f4853c07d1ecd68a097409dd602edfe29eff;p=libfirm diff --git a/ir/be/bessaconstr.c b/ir/be/bessaconstr.c index e12f27357..605cf5876 100644 --- a/ir/be/bessaconstr.c +++ b/ir/be/bessaconstr.c @@ -241,9 +241,8 @@ static void introduce_def_at_block(ir_node *block, ir_node *def) } } -void be_ssa_construction_init(be_ssa_construction_env_t *env, be_irg_t *birg) +void be_ssa_construction_init(be_ssa_construction_env_t *env, ir_graph *irg) { - ir_graph *irg = be_get_birg_irg(birg); ir_node *sb = get_irg_start_block(irg); int n_blocks = get_Block_dom_max_subtree_pre_num(sb); @@ -254,10 +253,10 @@ void be_ssa_construction_init(be_ssa_construction_env_t *env, be_irg_t *birg) stat_ev_dbl("bessaconstr_n_blocks", n_blocks); memset(env, 0, sizeof(env[0])); - be_assure_dom_front(birg); + be_assure_dom_front(irg); env->irg = irg; - env->domfronts = be_get_birg_dom_front(birg); + env->domfronts = be_get_irg_dom_front(irg); env->new_phis = NEW_ARR_F(ir_node*, 0); env->worklist = new_waitq(); @@ -420,9 +419,8 @@ void be_ssa_construction_update_liveness_phis(be_ssa_construction_env_t *env, be_timer_pop(T_SSA_CONSTR); } +BE_REGISTER_MODULE_CONSTRUCTOR(be_init_ssaconstr); void be_init_ssaconstr(void) { FIRM_DBG_REGISTER(dbg, "firm.be.ssaconstr"); } - -BE_REGISTER_MODULE_CONSTRUCTOR(be_init_ssaconstr);