summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bestack.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-12-05 11:21:32 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-12-05 15:06:22 +0100
commit5ce100386043a57a864379c8b6d8e6bb95a98596 (patch)
tree5f628b2f8d31ef48c35f8db69d457bf50595cfe6 /ir/be/bestack.c
parentb5556dbf9a817c0f7cfec43fc27219feb54883cc (diff)
bestack: Fetch the start block only once.
Diffstat (limited to 'ir/be/bestack.c')
-rw-r--r--ir/be/bestack.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ir/be/bestack.c b/ir/be/bestack.c
index 7941734..efb28a0 100644
--- a/ir/be/bestack.c
+++ b/ir/be/bestack.c
@@ -239,11 +239,10 @@ void be_abi_fix_stack_bias(ir_graph *irg)
stack_frame_compute_initial_offset(stack_layout);
/* Determine the stack bias at the end of the start block. */
- bw.start_block_bias = process_stack_bias(get_irg_start_block(irg),
- stack_layout->initial_bias);
+ bw.start_block = get_irg_start_block(irg);
+ bw.start_block_bias = process_stack_bias(bw.start_block, stack_layout->initial_bias);
/* fix the bias is all other blocks */
- bw.start_block = get_irg_start_block(irg);
irg_block_walk_graph(irg, stack_bias_walker, NULL, &bw);
/* fix now inner functions: these still have Sel node to outer