- split get_pairidx_for_regidx(), always called with constant parameter
[libfirm] / ir / be / becopyilp2.c
index a3d29c6..b95deea 100644 (file)
  *
  *             x_nc, y_ij \in N,   w_ij \in R^+
  */
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif /* HAVE_CONFIG_H */
-
-#include "firm_config.h"
+#include "config.h" /* HAVE_CONFIG_H */
 
 #ifdef WITH_ILP
 
@@ -296,7 +292,7 @@ static void build_clique_star_cstr(ilp_env_t *ienv) {
                set *edges;
                int i, o, n_nodes, n_edges;
 
-               if (arch_irn_is(ienv->co->aenv, aff->irn, ignore))
+               if (arch_irn_is(aff->irn, ignore))
                        continue;
 
                obstack_init(&ob);
@@ -305,7 +301,7 @@ static void build_clique_star_cstr(ilp_env_t *ienv) {
                /* get all affinity neighbours */
                n_nodes = 0;
                co_gs_foreach_neighb(aff, nbr) {
-                       if (!arch_irn_is(ienv->co->aenv, nbr->irn, ignore)) {
+                       if (!arch_irn_is(nbr->irn, ignore)) {
                                obstack_ptr_grow(&ob, nbr->irn);
                                ++n_nodes;
                        }
@@ -409,7 +405,7 @@ static void extend_path(ilp_env_t *ienv, pdeq *path, const ir_node *irn) {
        if (pdeq_contains(path, irn))
                return;
 
-       if (arch_irn_is(ienv->co->aenv, irn, ignore))
+       if (arch_irn_is(irn, ignore))
                return;
 
        /* insert the new irn */