X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbecopyopt.c;h=fff11272f26a813609eef8aab5a0791ee27e7133;hb=a4c23fb5fdcaf600f18b4fa7b7e104fa9b7dc514;hp=c94af82d1777b5980ba3362d1cfafc01d0e222ca;hpb=1ce363f80e6a204d4011f85813362d9bd1d0e7e4;p=libfirm diff --git a/ir/be/becopyopt.c b/ir/be/becopyopt.c index c94af82d1..fff11272f 100644 --- a/ir/be/becopyopt.c +++ b/ir/be/becopyopt.c @@ -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) {