summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bespillslots.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-07-16 13:49:57 +0200
committerMatthias Braun <matze@braunis.de>2014-07-18 10:04:10 +0200
commit8f1ba92ac594742f9b73902256cdb3a60b29b730 (patch)
tree40ae7273a730fa77019743913be5b5fb9c7b23eb /ir/be/bespillslots.c
parent772df9793f70bae91b5bd75e3f5f4d3295000f9f (diff)
cleanup beintlive_t
- Remove value_dominates_intrablock()/value_strictly_dominates_intrablock() and use sched_comes_before() instead - Use bool instead of int return types. - Assert that we don't check if a node interferes with itself as that is nearly always a bug in the code.
Diffstat (limited to 'ir/be/bespillslots.c')
-rw-r--r--ir/be/bespillslots.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ir/be/bespillslots.c b/ir/be/bespillslots.c
index bccc539..d6c6a29 100644
--- a/ir/be/bespillslots.c
+++ b/ir/be/bespillslots.c
@@ -276,13 +276,13 @@ static int merge_interferences(be_fec_env_t *env, bitset_t** interferences,
static bool my_values_interfere2(ir_graph *const irg, ir_node const *a,
ir_node const *b)
{
- if (value_dominates(b, a)) {
+ if (value_strictly_dominates(b, a)) {
/* Adjust a and b so, that a dominates b if
* a dominates b or vice versa. */
ir_node const *const t = a;
a = b;
b = t;
- } else if (!value_dominates(a, b)) {
+ } else if (!value_strictly_dominates(a, b)) {
/* If there is no dominance relation, they do not interfere. */
return 0;
}
@@ -310,12 +310,12 @@ static bool my_values_interfere2(ir_graph *const irg, ir_node const *a,
ir_node const *const user2 = get_edge_src_irn(edge2);
assert(!is_Sync(user2));
if (get_nodes_block(user2) == bb && !is_Phi(user2) &&
- _value_strictly_dominates_intrablock(b, user2))
+ sched_comes_before(b, user2))
return true;
}
} else {
if (get_nodes_block(user) == bb && !is_Phi(user) &&
- _value_strictly_dominates_intrablock(b, user))
+ sched_comes_before(b, user))
return true;
}
}