- split get_pairidx_for_regidx(), always called with constant parameter
[libfirm] / ir / be / beverify.c
index 07f8a04..e5a41aa 100644 (file)
@@ -24,9 +24,7 @@
  * @date        05.05.2006
  * @version     $Id$
  */
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
 
 #include <limits.h>
 
@@ -147,7 +145,6 @@ typedef struct be_verify_schedule_env_t_ {
        int      problem_found;     /**< flags indicating if there was a problem */
        bitset_t *scheduled;        /**< bitset of scheduled nodes */
        ir_graph *irg;              /**< the irg to check */
-       const arch_env_t *arch_env; /**< the arch_env */
 } be_verify_schedule_env_t;
 
 /**
@@ -344,7 +341,6 @@ int be_verify_schedule(const be_irg_t *birg)
        env.problem_found = 0;
        env.irg           = be_get_birg_irg(birg);
        env.scheduled     = bitset_alloca(get_irg_last_idx(env.irg));
-       env.arch_env      = birg->main_env->arch_env;
 
        irg_block_walk_graph(env.irg, verify_schedule_walker, NULL, &env);
        /* check if all nodes are scheduled */
@@ -365,11 +361,10 @@ typedef struct _spill_t {
 } spill_t;
 
 typedef struct {
-       const arch_env_t *arch_env;
-       ir_graph *irg;
-       set *spills;
-       ir_node **reloads;
-       int problem_found;
+       ir_graph  *irg;
+       set       *spills;
+       ir_node  **reloads;
+       int        problem_found;
 } be_verify_spillslots_env_t;
 
 static int cmp_spill(const void* d1, const void* d2, size_t size) {
@@ -597,11 +592,10 @@ static void check_lonely_spills(ir_node *node, void *data) {
        }
 }
 
-int be_verify_spillslots(const arch_env_t *arch_env, ir_graph *irg)
+int be_verify_spillslots(ir_graph *irg)
 {
        be_verify_spillslots_env_t env;
 
-       env.arch_env = arch_env;
        env.irg = irg;
        env.spills = new_set(cmp_spill, 10);
        env.reloads = NEW_ARR_F(ir_node*, 0);