Commit b9a8e2e9 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

sparc: Make kill_unused_stacknodes() work by not shadowing the variable, which should be used.

parent 6004627a
......@@ -94,8 +94,8 @@ static void introduce_epilog(ir_node *ret)
const arch_register_t *fp_reg = &sparc_registers[REG_FRAME_POINTER];
const arch_register_t *sp_reg = &sparc_registers[REG_SP];
ir_node *fp = be_get_initial_reg_value(irg, fp_reg);
ir_node *sp = be_get_initial_reg_value(irg, sp_reg);
ir_node *restore = new_bd_sparc_RestoreZero(NULL, block, sp, fp);
ir_node *new_sp = be_get_initial_reg_value(irg, sp_reg);
ir_node *restore = new_bd_sparc_RestoreZero(NULL, block, new_sp, fp);
sched_add_before(ret, restore);
arch_set_irn_register(restore, sp_reg);
set_irn_n(ret, n_sparc_Return_sp, restore);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment