X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbepressurestat.c;h=90ad0a3fd24cd0950c51f23309d62fb03c4badb0;hb=2799d7aec7b0f52d8f10ad5c7a88e31d4dbc8b1b;hp=589ad305348149586d4e0529387f79a929813d92;hpb=fcb579b8959da1d7563b1a7b9f008a423ffdf75a;p=libfirm diff --git a/ir/be/bepressurestat.c b/ir/be/bepressurestat.c index 589ad3053..90ad0a3fd 100644 --- a/ir/be/bepressurestat.c +++ b/ir/be/bepressurestat.c @@ -24,9 +24,7 @@ * @date 06.04.2006 * @version $Id$ */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include @@ -55,26 +53,24 @@ #include "bearch_t.h" #include "benode_t.h" #include "beutil.h" -#include "bespillremat.h" #include "bespill.h" #include "beirg_t.h" #define MAXPRESSURE 128 typedef struct _regpressure_ana_t { - arch_env_t *arch_env; const arch_register_class_t *cls; const be_lv_t *lv; unsigned int *stat; DEBUG_ONLY(firm_dbg_module_t *dbg); } regpressure_ana_t; -static INLINE int has_reg_class(const regpressure_ana_t *ra, const ir_node *irn) +static inline int has_reg_class(const regpressure_ana_t *ra, const ir_node *irn) { return arch_irn_consider_in_reg_alloc(ra->cls, irn); } -static INLINE int regpressure(pset *live) { +static inline int regpressure(pset *live) { int pressure = pset_count(live); return MIN(pressure, MAXPRESSURE); } @@ -135,10 +131,9 @@ void be_analyze_regpressure(be_irg_t *birg, const arch_register_class_t *cls, co FIRM_DBG_REGISTER(ra.dbg, "firm.be.regpressureana"); - ra.arch_env = birg->main_env->arch_env; - ra.lv = be_get_birg_liveness(birg); - ra.cls = cls; - ra.stat = stat; + ra.lv = be_get_birg_liveness(birg); + ra.cls = cls; + ra.stat = stat; memset(stat, 0, sizeof(stat));