summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bera.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2006-08-05 15:18:45 +0200
committerMatthias Braun <matze@braunis.de>2006-08-05 15:18:45 +0200
commitaa44a311d7a861b1eb0a326cd6b66714883b3077 (patch)
treee935ea6f3dc2d586334ea9e573f145622590d6c1 /ir/be/bera.c
parente1b0701f38a20b9569a987eb9559d1a61a2ad407 (diff)
use custom value_interfere function in verifiers (which is slower but doesn't rely on correct liveness information), fix memperm creation
Diffstat (limited to 'ir/be/bera.c')
-rw-r--r--ir/be/bera.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/ir/be/bera.c b/ir/be/bera.c
index f3b0139..9a1bb75 100644
--- a/ir/be/bera.c
+++ b/ir/be/bera.c
@@ -71,29 +71,29 @@ int values_interfere(const be_lv_t *lv, const ir_node *a, const ir_node *b)
bb = get_nodes_block(b);
- /*
- * If a is live end in b's block it is
- * live at b's definition (a dominates b)
- */
- if(be_is_live_end(lv, bb, a))
- return 1;
+ /*
+ * If a is live end in b's block it is
+ * live at b's definition (a dominates b)
+ */
+ if(be_is_live_end(lv, bb, a))
+ return 1;
- /*
- * Look at all usages of a.
- * If there's one usage of a in the block of b, then
- * we check, if this use is dominated by b, if that's true
- * a and b interfere. Note that b must strictly dominate the user,
+ /*
+ * Look at all usages of a.
+ * If there's one usage of a in the block of b, then
+ * we check, if this use is dominated by b, if that's true
+ * a and b interfere. Note that b must strictly dominate the user,
* since if b is the last user of in the block, b and a do not
* interfere.
- * Uses of a not in b's block can be disobeyed, because the
- * check for a being live at the end of b's block is already
- * performed.
- */
- foreach_out_edge(a, edge) {
- const ir_node *user = edge->src;
- if(get_nodes_block(user) == bb && !is_Phi(user) && b != user && value_dominates(b, user))
- return 1;
- }
+ * Uses of a not in b's block can be disobeyed, because the
+ * check for a being live at the end of b's block is already
+ * performed.
+ */
+ foreach_out_edge(a, edge) {
+ const ir_node *user = edge->src;
+ if(get_nodes_block(user) == bb && !is_Phi(user) && b != user && value_dominates(b, user))
+ return 1;
+ }
}
return 0;
}