- split get_pairidx_for_regidx(), always called with constant parameter
[libfirm] / ir / be / bepressurestat.c
index 111007d..7ce8913 100644 (file)
@@ -24,9 +24,7 @@
  * @date        06.04.2006
  * @version     $Id$
  */
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
 
 #include <math.h>
 
@@ -61,7 +59,6 @@
 #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;
@@ -134,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));