summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beblocksched.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-09-15 19:03:29 +0200
committerMatthias Braun <matze@braunis.de>2014-09-17 17:17:43 +0200
commitf3209aa8d3fe148e180d1747e7360a8d8737e598 (patch)
tree9f25783911ac099e7fbdfc6b27f36bea19fffc40 /ir/be/beblocksched.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/beblocksched.c')
-rw-r--r--ir/be/beblocksched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/beblocksched.c b/ir/be/beblocksched.c
index 944fad0..2ab0cfa 100644
--- a/ir/be/beblocksched.c
+++ b/ir/be/beblocksched.c
@@ -148,7 +148,7 @@ static void remove_empty_block(ir_node *block)
panic("Unexpected node %+F in block %+F with empty schedule", node, block);
}
- ir_graph *irg = get_Block_irg(block);
+ ir_graph *irg = get_irn_irg(block);
set_Block_cfgpred(block, 0, new_r_Bad(irg, mode_X));
kill_node(jump);
blocks_removed = true;