summaryrefslogtreecommitdiffhomepage
path: root/ir/be/becopyilp2.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-07-16 16:47:10 +0200
committerMatthias Braun <matze@braunis.de>2014-07-18 10:04:11 +0200
commitc18d23ad1345307209384c101ff07eb3f87ca96c (patch)
tree2c339414ef967b82389e4309396887be45133abf /ir/be/becopyilp2.c
parentd1b570dc09178836421ebe47ca98eed7c6709798 (diff)
remove lv argument from be_values_interfere
We query liveness from the irg on demand now.
Diffstat (limited to 'ir/be/becopyilp2.c')
-rw-r--r--ir/be/becopyilp2.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/ir/be/becopyilp2.c b/ir/be/becopyilp2.c
index 38deed4..9312bb7 100644
--- a/ir/be/becopyilp2.c
+++ b/ir/be/becopyilp2.c
@@ -330,7 +330,6 @@ static inline void remove_edge(set *edges, ir_node *n1, ir_node *n2, size_t *cou
static void build_clique_star_cstr(ilp_env_t *ienv)
{
/* for each node with affinity edges */
- be_lv_t *const lv = be_get_irg_liveness(ienv->co->irg);
co_gs_foreach_aff_node(ienv->co, aff) {
struct obstack ob;
const ir_node *center = aff->irn;
@@ -359,7 +358,7 @@ static void build_clique_star_cstr(ilp_env_t *ienv)
n_edges = 0;
for (i=0; i<n_nodes; ++i) {
for (o=0; o<i; ++o) {
- if (be_values_interfere(lv, nodes[i], nodes[o]))
+ if (be_values_interfere(nodes[i], nodes[o]))
add_edge(edges, nodes[i], nodes[o], &n_edges);
}
}
@@ -461,14 +460,13 @@ static void extend_path(ilp_env_t *ienv, pdeq *path, const ir_node *irn)
curr_path = ALLOCAN(ir_node*, len);
pdeq_copyl(path, (const void **)curr_path);
- be_lv_t *const lv = be_get_irg_liveness(ienv->co->irg);
for (i=1; i<len; ++i) {
- if (be_values_interfere(lv, irn, curr_path[i]))
+ if (be_values_interfere(irn, curr_path[i]))
goto end;
}
/* check for terminating interference */
- if (be_values_interfere(lv, irn, curr_path[0])) {
+ if (be_values_interfere(irn, curr_path[0])) {
/* One node is not a path. */
/* And a path of length 2 is covered by a clique star constraint. */
if (len > 2) {