summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bedump.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2012-11-26 19:01:40 +0100
committerMatthias Braun <matze@braunis.de>2012-11-26 19:04:19 +0100
commitcf07525ff9250cc6ec781bce9e5972c21aa82df2 (patch)
tree2125b6d413532a2f46b56eb37c05fe40e27037f1 /ir/be/bedump.c
parent97080a1af7b7e8a4969d2fba25e065df417ff074 (diff)
slightly optimize liveness code
- save ir_node* instead of irn_idx in the map (saves irn_idx_map lookups) - in liveness_transfer check register class on the inputs (which is cheaper) and only then check the operand
Diffstat (limited to 'ir/be/bedump.c')
-rw-r--r--ir/be/bedump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/bedump.c b/ir/be/bedump.c
index 1e43f38..486ca8a 100644
--- a/ir/be/bedump.c
+++ b/ir/be/bedump.c
@@ -161,7 +161,7 @@ void be_dump_liveness_block(void *context, FILE *F, const ir_node *bl)
for (i = 0; i < n; ++i) {
be_lv_info_node_t *n = &info[i+1].node;
- ir_fprintf(F, "%s %+F\n", lv_flags_to_str(n->flags), get_idx_irn(lv->irg, n->idx));
+ ir_fprintf(F, "%s %+F\n", lv_flags_to_str(n->flags), n->node);
}
}
}