some bugifxes for alloca handling
[libfirm] / ir / be / bemain.c
index cb960d1..4ee7aa4 100644 (file)
@@ -228,7 +228,6 @@ const backend_params *be_init(void)
        be_opt_register();
 
        be_sched_init();
-       be_liveness_init();
        be_numbering_init();
        be_copy_opt_init();
        copystat_init();
@@ -504,7 +503,7 @@ static void be_main_loop(FILE *file_handle)
 
                /* connect all stack modifying nodes together (see beabi.c) */
                BE_TIMER_PUSH(t_abi);
-               be_abi_fix_stack_nodes(birg.abi);
+               be_abi_fix_stack_nodes(birg.abi, NULL);
                BE_TIMER_POP(t_abi);
 
                dump(DUMP_SCHED, irg, "-fix_stack", dump_ir_block_graph_sched);
@@ -540,6 +539,10 @@ static void be_main_loop(FILE *file_handle)
                be_abi_fix_stack_bias(birg.abi);
                BE_TIMER_POP(t_abi);
 
+               BE_TIMER_PUSH(t_finish);
+               arch_code_generator_finish(birg.cg);
+               BE_TIMER_POP(t_finish);
+
                /* check schedule */
                BE_TIMER_PUSH(t_verify);
                be_sched_vrfy(birg.irg, vrfy_option);
@@ -583,6 +586,7 @@ static void be_main_loop(FILE *file_handle)
                        LC_EMIT_RA(ra_timer->t_prolog);
                        LC_EMIT_RA(ra_timer->t_live);
                        LC_EMIT_RA(ra_timer->t_spill);
+                        LC_EMIT_RA(ra_timer->t_spillslots);
                        LC_EMIT_RA(ra_timer->t_color);
                        LC_EMIT_RA(ra_timer->t_ifg);
                        LC_EMIT_RA(ra_timer->t_copymin);