From: Michael Beck Date: Fri, 24 Oct 2008 02:05:03 +0000 (+0000) Subject: - reserve the visited resource X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=2799d7aec7b0f52d8f10ad5c7a88e31d4dbc8b1b;p=libfirm - reserve the visited resource [r23157] --- diff --git a/ir/be/beschednormal.c b/ir/be/beschednormal.c index fd3bbcf6f..a5b8abd2a 100644 --- a/ir/be/beschednormal.c +++ b/ir/be/beschednormal.c @@ -374,8 +374,9 @@ static void *normal_init_graph(const list_sched_selector_t *vtab, irg_walk_graph(irg, normal_cost_walker, NULL, NULL); irg_walk_graph(irg, collect_roots, NULL, NULL); inc_irg_visited(irg); + ir_reserve_resources(irg, IR_RESOURCE_IRN_VISITED); irg_block_walk_graph(irg, normal_sched_block, NULL, heights); - ir_free_resources(irg, IR_RESOURCE_IRN_LINK); + ir_free_resources(irg, IR_RESOURCE_IRN_LINK | IR_RESOURCE_IRN_VISITED); heights_free(heights);