summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestate.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2012-11-27 17:31:38 +0100
committerMatthias Braun <matze@braunis.de>2012-11-28 11:27:13 +0100
commitb731214f8067006ee8c5ed026cd85f6d04592345 (patch)
treee6e43341cd1a79e37130ad4119d92a750c2970a1 /ir/be/bestate.c
parent5dd864dc8ffa757c3f44b2e49fd6c6f09ad25a03 (diff)
introduce be_lv_foreach_cls and use it
Diffstat (limited to 'ir/be/bestate.c')
-rw-r--r--ir/be/bestate.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ir/be/bestate.c b/ir/be/bestate.c
index 52dc3df..054e319 100644
--- a/ir/be/bestate.c
+++ b/ir/be/bestate.c
@@ -300,10 +300,7 @@ static block_info_t *compute_block_start_state(minibelady_env_t *env, ir_node *b
}
/* check all Live-Ins */
- be_lv_foreach(env->lv, block, be_lv_state_in, node) {
- if (!mode_is_data(get_irn_mode(node)))
- continue;
-
+ be_lv_foreach_cls(env->lv, block, be_lv_state_in, env->reg->reg_class, node) {
if (arch_get_irn_register(node) != env->reg)
continue;