summaryrefslogtreecommitdiffhomepage
path: root/ir/be/belive.c
diff options
context:
space:
mode:
authorMatthias Braun <matthias.braun@kit.edu>2012-07-13 23:04:41 +0200
committerMatthias Braun <matthias.braun@kit.edu>2012-07-16 15:50:30 +0200
commit3c2c8da0b29805ca3ce8a17cc23a60ffaa6e0ec1 (patch)
tree1cbdfa0a6226caa0f9a17411679d102e6f499822 /ir/be/belive.c
parent3d61544bd177bdb8c880ee87f5cdad2b7d1606e5 (diff)
simplify + optimize be_lv_foreach
Diffstat (limited to 'ir/be/belive.c')
-rw-r--r--ir/be/belive.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ir/be/belive.c b/ir/be/belive.c
index 76da51c..3129520 100644
--- a/ir/be/belive.c
+++ b/ir/be/belive.c
@@ -542,11 +542,8 @@ void be_liveness_end_of_block(const be_lv_t *lv,
const arch_register_class_t *cls,
const ir_node *block, ir_nodeset_t *live)
{
- int i;
-
assert(lv->sets_valid && "live sets must be computed");
- be_lv_foreach(lv, block, be_lv_state_end, i) {
- ir_node *node = be_lv_get_irn(lv, block, i);
+ be_lv_foreach(lv, block, be_lv_state_end, node) {
if (!arch_irn_consider_in_reg_alloc(cls, node))
continue;