path: root/ir/be/beloopana.c
diff options
authorMatthias Braun <>2014-09-15 19:03:29 +0200
committerMatthias Braun <>2014-09-17 17:17:43 +0200
commitf3209aa8d3fe148e180d1747e7360a8d8737e598 (patch)
tree9f25783911ac099e7fbdfc6b27f36bea19fffc40 /ir/be/beloopana.c
parent512cb109a33fcb43c4cb84b220cefd64f33d26e6 (diff)
put irg link directly into node attributs
The previous approach put the irg link into the block attributes, so while saving memory an extra indirection was necessary. Some testing with valgrind massif+callgrind revealed that a direct link increses peak memory usage by ~1% while also increasing runtime by ~1%. More importantly the code gets a bit simpler and some strange corner cases can be removed with the direct link.
Diffstat (limited to 'ir/be/beloopana.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/beloopana.c b/ir/be/beloopana.c
index a79f8db..6870d54 100644
--- a/ir/be/beloopana.c
+++ b/ir/be/beloopana.c
@@ -59,7 +59,7 @@ static unsigned be_compute_block_pressure(ir_node *const block, arch_register_cl
/* determine largest pressure with this block */
ir_nodeset_t live_nodes;
- be_lv_t *const lv = be_get_irg_liveness(get_Block_irg(block));
+ be_lv_t *const lv = be_get_irg_liveness(get_irn_irg(block));
be_liveness_end_of_block(lv, cls, block, &live_nodes);
unsigned max_live = (unsigned)ir_nodeset_size(&live_nodes);