summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestate.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/bestate.c
parent621e1ef46ebd99532c75c15f365f99edd609d771 (diff)
Properly reserve and free link resource.
Diffstat (limited to 'ir/be/bestate.c')
-rw-r--r--ir/be/bestate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/bestate.c b/ir/be/bestate.c
index fb66e71..1f8a8a9 100644
--- a/ir/be/bestate.c
+++ b/ir/be/bestate.c
@@ -415,6 +415,7 @@ void be_assure_state(ir_graph *irg, const arch_register_t *reg, void *func_env,
assure_irg_properties(irg, IR_GRAPH_PROPERTY_CONSISTENT_LOOPINFO
| IR_GRAPH_PROPERTY_CONSISTENT_DOMINANCE);
be_assure_live_sets(irg);
+ ir_reserve_resources(irg, IR_RESOURCE_IRN_VISITED | IR_RESOURCE_IRN_LINK);
minibelady_env_t env;
obstack_init(&env.obst);
@@ -427,7 +428,6 @@ void be_assure_state(ir_graph *irg, const arch_register_t *reg, void *func_env,
env.spills = NULL;
ir_nodehashmap_init(&env.spill_infos);
- ir_reserve_resources(irg, IR_RESOURCE_IRN_VISITED | IR_RESOURCE_IRN_LINK);
inc_irg_visited(irg);
/* process blocks */