From 83aa15663b7b55993cc1e94b321d5aea9ac07bc2 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Sat, 12 Aug 2006 22:45:42 +0000 Subject: [PATCH] BugFix: - do not delete the graph before it is access the last time ... --- ir/be/bemain.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ir/be/bemain.c b/ir/be/bemain.c index efbf98858..3cc925e6e 100644 --- a/ir/be/bemain.c +++ b/ir/be/bemain.c @@ -566,11 +566,6 @@ static void be_main_loop(FILE *file_handle) restore_optimization_state(&state); BE_TIMER_ONLY(num_nodes_a = get_num_reachable_nodes(irg)); - - /* switched off due to statistics (statistic module needs all irgs) */ - if (! stat_is_active()) - free_ir_graph(irg); - BE_TIMER_POP(t_other); #define LC_EMIT(timer) printf("%-20s: %.3lf msec\n", lc_timer_get_description(timer), (double)lc_timer_elapsed_usec(timer) / 1000.0) @@ -603,6 +598,11 @@ static void be_main_loop(FILE *file_handle) LC_EMIT(t_other); } #undef LC_EMIT + + /* switched off due to statistics (statistic module needs all irgs) */ + if (! stat_is_active()) + free_ir_graph(irg); + } be_done_env(&env); -- 2.20.1