projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
795f629
)
Support ignore nodes
author
Sebastian Hack
<hack@ipd.info.uni-karlsruhe.de>
Thu, 8 Nov 2007 07:33:36 +0000
(07:33 +0000)
committer
Sebastian Hack
<hack@ipd.info.uni-karlsruhe.de>
Thu, 8 Nov 2007 07:33:36 +0000
(07:33 +0000)
[r16486]
ir/be/becopyilp2.c
patch
|
blob
|
history
diff --git
a/ir/be/becopyilp2.c
b/ir/be/becopyilp2.c
index
ad41740
..
669d7ab
100644
(file)
--- 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;
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_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);
}
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 (pdeq_contains(path, irn))
return;
+ if (arch_irn_is(ienv->co->aenv, irn, ignore))
+ return;
+
/* insert the new irn */
pdeq_putr(path, irn);
/* insert the new irn */
pdeq_putr(path, irn);