fixed regalloc timer usage (use only when timing on)
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Mon, 3 Jul 2006 13:15:38 +0000 (13:15 +0000)
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Mon, 3 Jul 2006 13:15:38 +0000 (13:15 +0000)
ir/be/bemain.c

index 9dfb227..3a4eea9 100644 (file)
@@ -513,13 +513,13 @@ static void be_main_loop(FILE *file_handle)
 
                BE_TIMER_POP();
 
-               lc_timer_start(t_regalloc);
+               BE_TIMER_ONLY(lc_timer_start(t_regalloc));
 
                /* Do register allocation */
                ra_timer = ra->allocate(&birg);
                dump(DUMP_RA, irg, "-ra", dump_ir_block_graph_sched);
 
-               lc_timer_stop(t_regalloc);
+               BE_TIMER_ONLY(lc_timer_stop(t_regalloc));
 
                be_do_stat_nodes(irg, "06 Register Allocation");