From: Sebastian Hack Date: Thu, 8 Nov 2007 07:33:36 +0000 (+0000) Subject: Support ignore nodes X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=affb4e94e585f42fd9f70d7231119e38b9655047;p=libfirm Support ignore nodes [r16486] --- diff --git a/ir/be/becopyilp2.c b/ir/be/becopyilp2.c index ad417409e..669d7ab42 100644 --- a/ir/be/becopyilp2.c +++ b/ir/be/becopyilp2.c @@ -296,14 +296,19 @@ 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)) + continue; + obstack_init(&ob); edges = new_set(compare_edge_t, 8); /* get all affinity neighbours */ n_nodes = 0; co_gs_foreach_neighb(aff, nbr) { - obstack_ptr_grow(&ob, nbr->irn); - ++n_nodes; + if (!arch_irn_is(ienv->co->aenv, nbr->irn, ignore)) { + obstack_ptr_grow(&ob, nbr->irn); + ++n_nodes; + } } nodes = obstack_finish(&ob); @@ -404,6 +409,9 @@ static void extend_path(ilp_env_t *ienv, pdeq *path, ir_node *irn) { if (pdeq_contains(path, irn)) return; + if (arch_irn_is(ienv->co->aenv, irn, ignore)) + return; + /* insert the new irn */ pdeq_putr(path, irn);