X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbecopyopt.c;h=fff11272f26a813609eef8aab5a0791ee27e7133;hb=0b1140d1887f497ef413709e5cda2608f2cd1017;hp=e87a4cd703f582ea230fca37e53f14644425db8f;hpb=0e5f781d021c0b1e20ba08f583d4971419fedb5d;p=libfirm diff --git a/ir/be/becopyopt.c b/ir/be/becopyopt.c index e87a4cd70..fff11272f 100644 --- a/ir/be/becopyopt.c +++ b/ir/be/becopyopt.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -65,9 +65,8 @@ #include "beirg_t.h" #include "error.h" -#include -#include -#include +#include "lc_opts.h" +#include "lc_opts_enum.h" #define DUMP_BEFORE 1 #define DUMP_AFTER 2 @@ -1161,7 +1160,7 @@ static FILE *my_open(const be_chordal_env_t *env, const char *prefix, const char void co_driver(be_chordal_env_t *cenv) { - lc_timer_t *timer = lc_timer_register("firm.be.copyopt", "runtime"); + ir_timer_t *timer = ir_timer_register("firm.be.copyopt", "runtime"); co_complete_stats_t before, after; copy_opt_t *co; co_algo_t *algo_func; @@ -1218,11 +1217,11 @@ void co_driver(be_chordal_env_t *cenv) algo_func = algos[algo].algo; /* perform actual copy minimization */ - lc_timer_reset_and_start(timer); + ir_timer_reset_and_start(timer); was_optimal = algo_func(co); - lc_timer_stop(timer); + ir_timer_stop(timer); - be_stat_ev("co_time", lc_timer_elapsed_msec(timer)); + be_stat_ev("co_time", ir_timer_elapsed_msec(timer)); be_stat_ev_ull("co_optimal", was_optimal); if (dump_flags & DUMP_AFTER) {