X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fldstopt.c;h=782598fbf62e27ad2facaae89216d323b3e95432;hb=ea1d901f18ed7573b4664804ae8b5950fb679e19;hp=7ac484a578a68ed7c23e78a30606da6ddb8ff37c;hpb=94e9283b212f0f10b460248de945576a0bb61703;p=libfirm diff --git a/ir/opt/ldstopt.c b/ir/opt/ldstopt.c index 7ac484a57..782598fbf 100644 --- a/ir/opt/ldstopt.c +++ b/ir/opt/ldstopt.c @@ -1882,7 +1882,7 @@ static void move_loads_out_of_loops(scc *pscc, loop_env *env) /* only Phis and pure Calls are allowed here, so ignore them */ } if (other == NULL) { - ldst_info_t *ninfo; + ldst_info_t *ninfo = NULL; phi_entry *pe; dbg_info *db; @@ -2231,13 +2231,13 @@ static int optimize_loops(ir_graph *irg) env.nextDFSnum = 0; env.POnum = 0; env.changes = 0; - phase_init(&env.ph, "ldstopt", irg, PHASE_DEFAULT_GROWTH, init_loop_data, NULL); + phase_init(&env.ph, irg, init_loop_data); /* calculate the SCC's and drive loop optimization. */ do_dfs(irg, &env); DEL_ARR_F(env.stack); - phase_free(&env.ph); + phase_deinit(&env.ph); return env.changes; } /* optimize_loops */