Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
291696bb
Commit
291696bb
authored
Aug 23, 2011
by
Matthias Braun
Browse files
ia32: make sure the stackframe IncSp is always used
parent
5c34afb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/bearch_ia32.c
View file @
291696bb
...
...
@@ -1292,6 +1292,13 @@ static void introduce_prolog_epilog(ir_graph *irg)
set_irn_n
(
push
,
n_ia32_Push_stack
,
initial_sp
);
sched_add_after
(
curr_sp
,
incsp
);
/* make sure the initial IncSP is really used by someone */
if
(
get_irn_n_edges
(
incsp
)
<=
1
)
{
ir_node
*
in
[]
=
{
incsp
};
ir_node
*
keep
=
be_new_Keep
(
block
,
1
,
in
);
sched_add_after
(
incsp
,
keep
);
}
layout
->
initial_bias
=
-
4
;
}
else
{
ir_node
*
incsp
=
be_new_IncSP
(
sp
,
block
,
curr_sp
,
frame_size
,
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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