summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestate.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/bestate.c
parent3d61544bd177bdb8c880ee87f5cdad2b7d1606e5 (diff)
simplify + optimize be_lv_foreach
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 a7c1b82..4cf17d1 100644
--- a/ir/be/bestate.c
+++ b/ir/be/bestate.c
@@ -217,7 +217,6 @@ static block_info_t *compute_block_start_state(minibelady_env_t *env, ir_node *b
int n_cfgpreds;
unsigned best_time;
int outer_loop_allowed;
- int i;
/* Create the block info for this block. */
block_info = new_block_info(&env->obst, block);
@@ -300,9 +299,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, i) {
- ir_node *const node = be_lv_get_irn(env->lv, block, i);
-
+ be_lv_foreach(env->lv, block, be_lv_state_in, node) {
if (!mode_is_data(get_irn_mode(node)))
continue;