fixed addressmode bug
[libfirm] / ir / be / bemain.c
index 80dcde1..15c8118 100644 (file)
@@ -303,7 +303,7 @@ static void be_main_loop(FILE *file_handle)
                 * Note that this requires disabling the edges here.
                 */
                edges_deactivate(irg);
-               dead_node_elimination(irg);
+               //dead_node_elimination(irg);
                edges_activate(irg);
 
                /* Compute loop nesting information (for weighting copies) */
@@ -312,7 +312,7 @@ static void be_main_loop(FILE *file_handle)
                dump(DUMP_PREPARED, irg, "-prepared", dump_ir_block_graph);
 
                /* add Keeps for should_be_different constrained nodes */
-               // assure_constraints(&birg);
+               assure_constraints(&birg);
                dump(DUMP_PREPARED, irg, "-assured", dump_ir_block_graph);
 
                /* Schedule the graphs. */
@@ -337,6 +337,8 @@ static void be_main_loop(FILE *file_handle)
                arch_code_generator_done(birg.cg);
                dump(DUMP_FINAL, irg, "-end", dump_ir_block_graph_sched);
                be_abi_free(birg.abi);
+
+               free_ir_graph(irg);
        }
 
        be_done_env(&env);