summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beutil.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-10-16 15:51:16 +0200
committerMatthias Braun <matze@braunis.de>2014-10-18 20:42:46 +0200
commitd43b03bdc88f632bdac7552879571cd12abf6572 (patch)
tree0a6db116c54c1f4ee3926cdf06746447478d42ed /ir/be/beutil.c
parentdd017bad35ba3c422f9dfeebc79bb7dc92583e34 (diff)
only update livesets if they are valid
Diffstat (limited to 'ir/be/beutil.c')
-rw-r--r--ir/be/beutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ir/be/beutil.c b/ir/be/beutil.c
index cfa5a17..11bb6b9 100644
--- a/ir/be/beutil.c
+++ b/ir/be/beutil.c
@@ -152,7 +152,7 @@ static void remove_dead_nodes_walker(ir_node *block, void *data)
if (bitset_is_set(env->reachable, get_irn_idx(node)))
continue;
- if (env->lv != NULL)
+ if (env->lv->sets_valid)
be_liveness_remove(env->lv, node);
sched_remove(node);
@@ -162,7 +162,7 @@ static void remove_dead_nodes_walker(ir_node *block, void *data)
ir_node *proj = get_edge_src_irn(edge);
if (!is_Proj(proj))
continue;
- if (env->lv != NULL)
+ if (env->lv->sets_valid)
be_liveness_remove(env->lv, proj);
kill_node(proj);
}