From e1bef3be5c43407fda208525fc2d1a9c5fffcc21 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 16 Jan 2008 12:29:01 +0000 Subject: [PATCH] reset timers after emitting them [r17399] --- ir/be/bemain.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/ir/be/bemain.c b/ir/be/bemain.c index 95d402b7c..2382e5ed7 100644 --- a/ir/be/bemain.c +++ b/ir/be/bemain.c @@ -467,16 +467,6 @@ static void be_main_loop(FILE *file_handle, const char *cup_name) stat_ev_ctx_push_fobj("bemain_irg", irg); /* stop and reset timers */ - BE_TIMER_ONLY( - LC_STOP_AND_RESET_TIMER(t_abi); - LC_STOP_AND_RESET_TIMER(t_codegen); - LC_STOP_AND_RESET_TIMER(t_sched); - LC_STOP_AND_RESET_TIMER(t_constr); - LC_STOP_AND_RESET_TIMER(t_finish); - LC_STOP_AND_RESET_TIMER(t_emit); - LC_STOP_AND_RESET_TIMER(t_verify); - LC_STOP_AND_RESET_TIMER(t_other); - ); BE_TIMER_PUSH(t_other); /* t_other */ /* Verify the initial graph */ @@ -695,7 +685,8 @@ static void be_main_loop(FILE *file_handle, const char *cup_name) stat_ev_dbl(lc_timer_get_name(timer), lc_timer_elapsed_msec(timer)); \ } else { \ printf("%-20s: %8.3lf msec\n", lc_timer_get_description(timer), (double)lc_timer_elapsed_usec(timer) / 1000.0); \ - } + } \ + LC_STOP_AND_RESET_TIMER(timer); BE_TIMER_ONLY( stat_ev_if { -- 2.20.1