X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbelistsched.c;h=dbdf8cf99142891073e23557e026de6b07fc4e88;hb=9c456297552bb20d04e2fe76fd4a712afa8aa63f;hp=f946e1ca700f170567819fb50b3ac36bb1210bb1;hpb=f8cc15664f571aa7ef89d6f6bc8d5bd2b8ca7d53;p=libfirm diff --git a/ir/be/belistsched.c b/ir/be/belistsched.c index f946e1ca7..dbdf8cf99 100644 --- a/ir/be/belistsched.c +++ b/ir/be/belistsched.c @@ -36,14 +36,13 @@ #include "obst.h" #include "list.h" -#include "iterator.h" #include "iredges_t.h" #include "irgwalk.h" #include "irnode_t.h" #include "irmode_t.h" #include "irdump.h" -#include "irprintf_t.h" +#include "irprintf.h" #include "array.h" #include "debug.h" #include "irtools.h" @@ -55,7 +54,6 @@ #include "belistsched.h" #include "bearch.h" #include "bestat.h" -#include "beirg.h" #include "lc_opts.h" #include "lc_opts_enum.h" @@ -164,8 +162,6 @@ static void try_make_ready(block_sched_env_t *env, ir_node *pred, ir_node *irn) static void selected(block_sched_env_t *env, ir_node *node) { - const ir_edge_t *edge; - /* notify the selector about the finally selected node. */ if (env->selector->node_selected) env->selector->node_selected(env->selector_block_env, node); @@ -221,7 +217,6 @@ static void list_sched_block(ir_node *block, void *env_ptr) const list_sched_selector_t *selector = env->selector; block_sched_env_t be; - const ir_edge_t *edge; ir_nodeset_t *cands = &be.cands; /* Initialize the block's list head that will hold the schedule. */ @@ -265,6 +260,8 @@ static void list_sched_block(ir_node *block, void *env_ptr) add_to_sched(&be, irn); } + ir_nodeset_destroy(cands); + if (selector->finish_block) selector->finish_block(be.selector_block_env); }