From: Christian Würdig Date: Thu, 6 Jul 2006 14:47:10 +0000 (+0000) Subject: removed some unused variables X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=fbebfa3fd3214181b3f3c55d61a01ca4b51b61c3;p=libfirm removed some unused variables free irgs if statistic is not active --- diff --git a/ir/be/bemain.c b/ir/be/bemain.c index 3a4eea9c0..63d689020 100644 --- a/ir/be/bemain.c +++ b/ir/be/bemain.c @@ -340,15 +340,6 @@ static void be_main_loop(FILE *file_handle) unsigned num_nodes_b = 0; unsigned num_nodes_a = 0; unsigned num_nodes_r = 0; - unsigned ra_prolog = 0; - unsigned ra_epilog = 0; - unsigned ra_live = 0; - unsigned ra_spill = 0; - unsigned ra_color = 0; - unsigned ra_ifg = 0; - unsigned ra_copymin = 0; - unsigned ra_ssa = 0; - unsigned ra_other = 0; lc_timer_t *t_prolog, *t_abi, *t_codegen, *t_sched, *t_constr, *t_regalloc, *t_finish, *t_emit, *t_other, *t_verify; be_ra_timer_t *ra_timer; @@ -548,7 +539,8 @@ static void be_main_loop(FILE *file_handle) BE_TIMER_ONLY(num_nodes_a = get_num_reachable_nodes(irg)); /* switched off due to statistics (statistic module needs all irgs) */ - // free_ir_graph(irg); + if (! stat_is_active()) + free_ir_graph(irg); BE_TIMER_POP(); #define LC_EMIT(timer) printf("%-20s: %.3lf msec\n", lc_timer_get_description(timer), (double)lc_timer_elapsed_usec(timer) / 1000.0)