summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bepeephole.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/bepeephole.c
parent3d61544bd177bdb8c880ee87f5cdad2b7d1606e5 (diff)
simplify + optimize be_lv_foreach
Diffstat (limited to 'ir/be/bepeephole.c')
-rw-r--r--ir/be/bepeephole.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ir/be/bepeephole.c b/ir/be/bepeephole.c
index 2a08fc4..688362d 100644
--- a/ir/be/bepeephole.c
+++ b/ir/be/bepeephole.c
@@ -184,7 +184,6 @@ void be_peephole_exchange(ir_node *old, ir_node *nw)
*/
static void process_block(ir_node *block, void *data)
{
- int l;
(void) data;
/* construct initial register assignment */
@@ -192,8 +191,7 @@ static void process_block(ir_node *block, void *data)
assert(lv->sets_valid && "live sets must be computed");
DB((dbg, LEVEL_1, "\nProcessing block %+F (from end)\n", block));
- be_lv_foreach(lv, block, be_lv_state_end, l) {
- ir_node *node = be_lv_get_irn(lv, block, l);
+ be_lv_foreach(lv, block, be_lv_state_end, node) {
set_reg_value(node);
}
DB((dbg, LEVEL_1, "\nstart processing\n"));