X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=ir%2Fbe%2Fbessaconstr.c;h=8dc730a937ef25cabc01fd6bdfc935cad8a2eebe;hb=07ea816fa30005a2e1e94171090327233e05a112;hp=f849b3bc0f505fa01cc897c35039b6c7f317113e;hpb=3bc96e65003777814c9f29f1f257c5343c2b61d6;p=libfirm diff --git a/ir/be/bessaconstr.c b/ir/be/bessaconstr.c index f849b3bc0..8dc730a93 100644 --- a/ir/be/bessaconstr.c +++ b/ir/be/bessaconstr.c @@ -240,9 +240,7 @@ static ir_node *insert_dummy_phi(be_ssa_construction_env_t *env, ir_node *block) } phi = be_new_Phi(block, n_preds, ins, env->mode, env->phi_cls); sched_add_after(block, phi); - if (env->new_phis != NULL) { - ARR_APP1(ir_node*, env->new_phis, phi); - } + ARR_APP1(ir_node*, env->new_phis, phi); DBG((dbg, LEVEL_2, "\tcreating phi %+F in %+F\n", phi, block)); introduce_definition(env, phi); @@ -637,7 +635,7 @@ 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); +BE_REGISTER_MODULE_CONSTRUCTOR(be_init_ssaconstr) void be_init_ssaconstr(void) { FIRM_DBG_REGISTER(dbg, "firm.be.ssaconstr");