X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeschednormal.c;h=6b83ee5441d7031e55e3dbd51c6665d83d3dfad4;hb=2c2c56e73d75124c542ec97fa6d0df75a43a6536;hp=f630a7d17641a4aa7371d02ca66aa8dcc893d9e1;hpb=7c767284b8f554996788212eb30709bb949710c4;p=libfirm diff --git a/ir/be/beschednormal.c b/ir/be/beschednormal.c index f630a7d17..6b83ee544 100644 --- a/ir/be/beschednormal.c +++ b/ir/be/beschednormal.c @@ -22,9 +22,7 @@ * @author Christoph Mallon * @version $Id$ */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include @@ -49,9 +47,6 @@ static int must_be_scheduled(const ir_node* const irn) } -static const arch_env_t *cur_arch_env; - - static ir_node *normal_select(void *block_env, ir_nodeset_t *ready_set, ir_nodeset_t *live_set) { @@ -116,7 +111,7 @@ static int count_result(const ir_node* irn) return mode != mode_M && mode != mode_X && - !arch_irn_is(cur_arch_env, irn, ignore); + !arch_irn_is(irn, ignore); } @@ -164,7 +159,7 @@ static int normal_tree_cost(ir_node* irn) cost = normal_tree_cost(pred); if (be_is_Barrier(pred)) cost = 1; // XXX hack: the barrier causes all users to have a reguse of #regs - if (!arch_irn_is(cur_arch_env, pred, ignore)) { + if (!arch_irn_is(pred, ignore)) { real_pred = (is_Proj(pred) ? get_Proj_pred(pred) : pred); pred_fc = get_irn_link(real_pred); pred_fc->no_root = 1; @@ -186,9 +181,9 @@ static int normal_tree_cost(ir_node* irn) last = 0; for (i = 0; i < arity; ++i) { ir_node* op = fc->costs[i].irn; - if (op == last) continue; - if (get_irn_mode(op) == mode_M) continue; - if (arch_irn_is(cur_arch_env, op, ignore)) continue; + if (op == last) continue; + if (get_irn_mode(op) == mode_M) continue; + if (arch_irn_is(op, ignore)) continue; cost = MAX(fc->costs[i].cost + n_op_res, cost); last = op; ++n_op_res; @@ -368,8 +363,6 @@ static void *normal_init_graph(const list_sched_selector_t *vtab, (void)vtab; - cur_arch_env = be_get_birg_arch_env(birg); - be_clear_links(irg); heights = heights_new(irg);