X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbecopyheur4.c;h=4b903b20d34698af8d01c0da502592c0a05118b0;hb=a8d6e45f13a40f6c9269608bf937e3e641d0b715;hp=76a19306f8cfa48be5b2e662def06a770836e408;hpb=a824d376c1c37f80c7e1ebd6304665380d28fc5f;p=libfirm diff --git a/ir/be/becopyheur4.c b/ir/be/becopyheur4.c index 76a19306f..4b903b20d 100644 --- a/ir/be/becopyheur4.c +++ b/ir/be/becopyheur4.c @@ -1381,7 +1381,7 @@ static void color_aff_chunk(co_mst_env_t *env, aff_chunk_t *c) { /** * Main driver for mst safe coalescing algorithm. */ -int co_solve_heuristic_mst(copy_opt_t *co) { +static int co_solve_heuristic_mst(copy_opt_t *co) { unsigned n_regs = co->cls->n_regs; bitset_t *ignore_regs = bitset_alloca(n_regs); unsigned i, j, k; @@ -1481,9 +1481,14 @@ void be_init_copyheur4(void) { lc_opt_entry_t *co_grp = lc_opt_get_grp(chordal_grp, "co"); lc_opt_entry_t *heur4_grp = lc_opt_get_grp(co_grp, "heur4"); + static co_algo_info copyheur = { + co_solve_heuristic_mst, 0 + }; + lc_opt_add_table(heur4_grp, options); + be_register_copyopt("heur4", ©heur); + FIRM_DBG_REGISTER(dbg, "firm.be.co.heur4"); } - BE_REGISTER_MODULE_CONSTRUCTOR(be_init_copyheur4);