X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbecopyheur4.c;h=bac5a04bc20360b544d886ab32fc7563b56e9a4a;hb=d1cb53b02702f0ea401e511b4825cf83bc89610a;hp=84a69ae01fae4a0f92eab8f6fd2ab5972c4c46f9;hpb=16fc4cdb8f7bc9d203f4e024d0bad50f79867c4f;p=libfirm diff --git a/ir/be/becopyheur4.c b/ir/be/becopyheur4.c index 84a69ae01..bac5a04bc 100644 --- a/ir/be/becopyheur4.c +++ b/ir/be/becopyheur4.c @@ -82,7 +82,7 @@ typedef float real_t; static unsigned last_chunk_id = 0; static int recolor_limit = 7; -static real_t dislike_influence = REAL(0.1); +static double dislike_influence = REAL(0.1); typedef struct col_cost_t { int col; @@ -401,7 +401,7 @@ static void *co_mst_irn_init(ir_phase *ph, const ir_node *irn) res->adm_colors = bitset_obstack_alloc(phase_obst(ph), env->n_regs); /* Exclude colors not assignable to the irn */ - req = arch_get_register_req_out(irn); + req = arch_get_irn_register_req(irn); if (arch_register_req_is(req, limited)) rbitset_copy_to_bitset(req->limited, res->adm_colors); else @@ -1118,7 +1118,7 @@ static int recolor_nodes(co_mst_env_t *env, co_mst_irn_t *node, col_cost_t *cost } /** - * Tries to bring node @p node and all it's neighbours to color @p tgt_col. + * Tries to bring node @p node and all its neighbours to color @p tgt_col. * @return 1 if color @p col could be applied, 0 otherwise */ static int change_node_color(co_mst_env_t *env, co_mst_irn_t *node, int tgt_col, struct list_head *changed) @@ -1135,7 +1135,7 @@ static int change_node_color(co_mst_env_t *env, co_mst_irn_t *node, int tgt_col, /* Node has not yet a fixed color and target color is admissible - -> try to recolor node and it's affinity neighbours + -> try to recolor node and its affinity neighbours */ if (is_loose(node) && bitset_is_set(node->adm_colors, tgt_col)) { col_cost_t *costs = env->single_cols[tgt_col]; @@ -1515,7 +1515,7 @@ static const lc_opt_table_entry_t options[] = { LC_OPT_LAST }; -BE_REGISTER_MODULE_CONSTRUCTOR(be_init_copyheur4); +BE_REGISTER_MODULE_CONSTRUCTOR(be_init_copyheur4) void be_init_copyheur4(void) { lc_opt_entry_t *be_grp = lc_opt_get_grp(firm_opt_get_root(), "be");