summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beblocksched.c
diff options
context:
space:
mode:
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>2015-05-22 12:11:00 +0200
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>2015-06-02 11:08:17 +0200
commitc740a32e10376ab718d475441b3f75741c6ffdc4 (patch)
tree9db318c26725918d1a2136a2ab4d312a4e1b01da /ir/be/beblocksched.c
parent621e1ef46ebd99532c75c15f365f99edd609d771 (diff)
Properly reserve and free link resource.
Diffstat (limited to 'ir/be/beblocksched.c')
-rw-r--r--ir/be/beblocksched.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ir/be/beblocksched.c b/ir/be/beblocksched.c
index 18316d7..fab075e 100644
--- a/ir/be/beblocksched.c
+++ b/ir/be/beblocksched.c
@@ -563,6 +563,7 @@ ir_node **be_create_block_schedule(ir_graph *irg)
assure_loopinfo(irg);
// collect edge execution frequencies
+ ir_reserve_resources(irg, IR_RESOURCE_IRN_LINK);
irg_block_walk_graph(irg, collect_egde_frequency, NULL, &env);
remove_empty_blocks(irg);
@@ -570,6 +571,7 @@ ir_node **be_create_block_schedule(ir_graph *irg)
coalesce_blocks(&env);
ir_node **const block_list = create_blocksched_array(&env);
+ ir_free_resources(irg, IR_RESOURCE_IRN_LINK);
DEL_ARR_F(env.edges);
obstack_free(&env.obst, NULL);