summaryrefslogtreecommitdiffhomepage
path: root/ir/be/belive.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-24 15:26:01 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-24 15:26:01 +0100
commit79ed09cada62c1f96ea40b427372a0f06d6bc638 (patch)
tree548baa0ac2a27bc326b29237216f742c0ec06967 /ir/be/belive.c
parent623a89e25bce0fa58ab7cef147fc08f3a56ead6b (diff)
belive: Change be_liveness_nodes_live_at() to be_liveness_nodes_live_before().
The operation we want to perform is to get the live values just before a node.
Diffstat (limited to 'ir/be/belive.c')
-rw-r--r--ir/be/belive.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/ir/be/belive.c b/ir/be/belive.c
index 687788b..23dc75f 100644
--- a/ir/be/belive.c
+++ b/ir/be/belive.c
@@ -543,22 +543,14 @@ void be_liveness_end_of_block(const be_lv_t *lv,
-void be_liveness_nodes_live_at(const be_lv_t *lv,
- const arch_register_class_t *cls,
- const ir_node *pos, ir_nodeset_t *live)
+void be_liveness_nodes_live_before(be_lv_t const *const lv, arch_register_class_t const *const cls, ir_node const *const pos, ir_nodeset_t *const live)
{
- const ir_node *bl = is_Block(pos) ? pos : get_nodes_block(pos);
-
+ ir_node const *const bl = get_nodes_block(pos);
be_liveness_end_of_block(lv, cls, bl, live);
sched_foreach_reverse(bl, irn) {
- /*
- * If we encounter the node we want to insert the Perm after,
- * exit immediately, so that this node is still live
- */
+ be_liveness_transfer(cls, irn, live);
if (irn == pos)
return;
-
- be_liveness_transfer(cls, irn, live);
}
}