X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbessadestr.c;h=ded0b436869e70e12f696470a72f298eecadfa74;hb=6e3e499d6c68aee0c6a9ada6a99f16c4f6f8445b;hp=07e3bdc1bd7b5c763a891dfe9606c3c261a6864d;hpb=5e1f95efc1491481487ba22482422b6d6f42bcdb;p=libfirm diff --git a/ir/be/bessadestr.c b/ir/be/bessadestr.c index 07e3bdc1b..ded0b4368 100644 --- a/ir/be/bessadestr.c +++ b/ir/be/bessadestr.c @@ -134,7 +134,7 @@ static void insert_all_perms_walker(ir_node *bl, void *data) { * Create a new Perm with the arguments just collected * above in the arg_set and insert it into the schedule. */ - in = malloc(n_projs * sizeof(in[0])); + in = xmalloc(n_projs * sizeof(in[0])); for(pp = set_first(arg_set); pp; pp = set_next(arg_set)) in[pp->pos] = pp->arg; @@ -296,7 +296,7 @@ void be_ssa_destruction(be_chordal_env_t *chordal_env) { pmap *perm_map = pmap_create(); ir_graph *irg = chordal_env->irg; - dbg = firm_dbg_register("ir.be.ssadestr"); + FIRM_DBG_REGISTER(dbg, "ir.be.ssadestr"); /* create a map for fast lookup of perms: block --> perm */ chordal_env->data = perm_map; @@ -305,13 +305,15 @@ void be_ssa_destruction(be_chordal_env_t *chordal_env) { DBG((dbg, LEVEL_1, "Placing perms...\n")); irg_block_walk_graph(irg, insert_all_perms_walker, NULL, chordal_env); #ifdef DUMP_GRAPHS - dump_ir_block_graph_sched(irg, "-ssa_destr_perms_placed"); + be_dump(irg, "-ssa_destr_perms_placed", dump_ir_block_graph_sched); #endif + be_liveness(irg); + DBG((dbg, LEVEL_1, "Setting regs and placing dupls...\n")); irg_block_walk_graph(irg, set_regs_or_place_dupls_walker, NULL, chordal_env); #ifdef DUMP_GRAPHS - dump_ir_block_graph_sched(irg, "-ssa_destr_regs_set"); + be_dump(irg, "-ssa_destr_regs_set", dump_ir_block_graph_sched); #endif pmap_destroy(perm_map);