From: Christian Würdig Date: Fri, 23 Feb 2007 17:46:13 +0000 (+0000) Subject: do not free irg, STA needs it later on X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=37b98eab70cf4798fb5c6d697d59953101c870d8;p=libfirm do not free irg, STA needs it later on removed unused code --- diff --git a/ir/be/bemain.c b/ir/be/bemain.c index 3cdbab6a9..c4262c5fa 100644 --- a/ir/be/bemain.c +++ b/ir/be/bemain.c @@ -524,11 +524,6 @@ static void be_main_loop(FILE *file_handle, const char *cup_name) be_do_stat_nodes(irg, "03 Prepare"); - /* Transformation may produce nodes only reachable via out edges, kill them. */ -#if 1 - edges_deactivate(irg); - edges_activate(irg); -#endif dump(DUMP_PREPARED, irg, "-prepared", dump_ir_block_graph); BE_TIMER_ONLY(num_nodes_r = get_num_reachable_nodes(irg)); @@ -744,11 +739,12 @@ static void be_main_loop(FILE *file_handle, const char *cup_name) be_free_birg(birg); /* switched off due to statistics (statistic module needs all irgs) */ +#if 0 /* STA needs irgs */ #ifdef FIRM_STATISTICS if (! stat_is_active()) -#endif +#endif /* FIRM_STATISTICS */ free_ir_graph(irg); - +#endif /* if 0 */ if(be_stat_ev_is_active()) { be_stat_ev_pop(); }