Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
9f038f60
Commit
9f038f60
authored
Jan 11, 2015
by
Christoph Mallon
Browse files
amd64: Rewire edges so that the IncSP of the prologue is actually used.
parent
9ebb0b5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/amd64/bearch_amd64.c
View file @
9f038f60
...
...
@@ -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 */
be_keep_if_unused
(
incsp
);
...
...
@@ -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
);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment