Commit 9f038f60 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

amd64: Rewire edges so that the IncSP of the prologue is actually used.

parent 9ebb0b5e
......@@ -584,6 +584,7 @@ static void introduce_prologue(ir_graph *const irg)
ir_node *incsp = amd64_new_IncSP(block, curr_sp, frame_size, 0);
sched_add_after(curr_bp, incsp);
edges_reroute_except(initial_sp, incsp, push);
/* make sure the initial IncSP is really used by someone */
......@@ -594,6 +595,7 @@ static void introduce_prologue(ir_graph *const irg)
ir_node *const incsp = amd64_new_IncSP(block, initial_sp,
frame_size, 0);
sched_add_after(start, incsp);
edges_reroute_except(initial_sp, incsp, incsp);
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