ir_nodeset_t mem_phis; /**< set of all spilled phis. */
ir_exec_freq *exec_freq;
-#ifdef FIRM_STATISTICS
unsigned spill_count;
unsigned reload_count;
unsigned remat_count;
unsigned spilled_phi_count;
-#endif
};
/**
env->exec_freq = be_get_irg_exec_freq(irg);
obstack_init(&env->obst);
-#ifdef FIRM_STATISTICS
env->spill_count = 0;
env->reload_count = 0;
env->remat_count = 0;
env->spilled_phi_count = 0;
-#endif
return env;
}
spill->spill = be_spill(block, to_spill);
sched_add_after(skip_Proj(after), spill->spill);
DB((dbg, LEVEL_1, "\t%+F after %+F\n", spill->spill, after));
-#ifdef FIRM_STATISTICS
env->spill_count++;
-#endif
}
DBG((dbg, LEVEL_1, "\n"));
}
sched_add_after(block, spill->spill);
spillinfo->spills = spill;
-#ifdef FIRM_STATISTICS
env->spilled_phi_count++;
-#endif
for (i = 0; i < arity; ++i) {
ir_node *arg = get_irn_n(phi, i);
ins[i] = arg;
} else {
ins[i] = do_remat(env, arg, reloader);
-#ifdef FIRM_STATISTICS
/* don't count the recursive call as remat */
env->remat_count--;
-#endif
}
}
/* insert in schedule */
sched_reset(res);
sched_add_before(reloader, res);
-#ifdef FIRM_STATISTICS
env->remat_count++;
-#endif
}
return res;
assert(si->spills != NULL);
copy = be_reload(si->reload_cls, rld->reloader, mode,
si->spills->spill);
-#ifdef FIRM_STATISTICS
env->reload_count++;
-#endif
}
DBG((dbg, LEVEL_1, " %+F of %+F before %+F\n",
be_timer_pop(T_RA_SPILL_APPLY);
}
-BE_REGISTER_MODULE_CONSTRUCTOR(be_init_spill);
+BE_REGISTER_MODULE_CONSTRUCTOR(be_init_spill)
void be_init_spill(void)
{
FIRM_DBG_REGISTER(dbg, "firm.be.spill");