X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbecopyilp.c;h=a40a448c26b332f082bca0c06fc9d4bfa146c13a;hb=4585effab77d4716f3a0c4315d094fc175e20841;hp=296f1a48baa2d3d5f2e862d1718e70dad907a9d3;hpb=3ca8e2bf6146966e41eea636ae806a25b76f2b0c;p=libfirm diff --git a/ir/be/becopyilp.c b/ir/be/becopyilp.c index 296f1a48b..a40a448c2 100644 --- a/ir/be/becopyilp.c +++ b/ir/be/becopyilp.c @@ -8,6 +8,12 @@ * */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif /* HAVE_CONFIG_H */ + +#ifdef WITH_ILP + #include "becopyilp_t.h" #include "beifg_t.h" @@ -48,6 +54,7 @@ static INLINE int sr_is_simplicial(size_red_t *sr, const ir_node *ifn) { be_ifg_foreach_neighbour(ifg, iter, ifn, curr) if (!sr_is_removed(sr, curr)) all[size++] = curr; + be_ifg_neighbours_break(ifg, iter); /* check if these form a clique */ for (i=0; ico->cenv->ifg; - void *iter = be_ifg_neighbours_iter_alloca(ifg); + void *iter = be_ifg_nodes_iter_alloca(ifg); while (redo) { redo = 0; @@ -87,6 +94,7 @@ void sr_remove(size_red_t *sr) { } } } + be_ifg_nodes_break(ifg, iter); } } @@ -109,6 +117,7 @@ void sr_reinsert(size_red_t *sr) { if (!sr_is_removed(sr, other)) /* only inspect nodes which are in graph right now */ bitset_set(used_cols, get_irn_col(sr->co, other)); } + be_ifg_neighbours_break(ifg, iter); /* now all bits not set are possible colors */ free_col = bitset_next_clear(used_cols, 0); @@ -181,3 +190,10 @@ void free_ilp_env(ilp_env_t *ienv) { free_lpp(ienv->lp); free(ienv); } + +#else /* WITH_ILP */ + +static void only_that_you_can_compile_without_WITH_ILP_defined(void) { +} + +#endif /* WITH_ILP */