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
961fd368
Commit
961fd368
authored
Jan 12, 2015
by
Christoph Mallon
Browse files
amd64: Build the epilogue in the block of the return, not in the start block.
parent
63205c89
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/amd64/bearch_amd64.c
View file @
961fd368
...
...
@@ -517,8 +517,7 @@ static void introduce_epilogue(ir_node *ret)
const
arch_register_t
*
sp
=
&
amd64_registers
[
REG_RSP
];
const
arch_register_t
*
bp
=
&
amd64_registers
[
REG_RBP
];
ir_graph
*
irg
=
get_irn_irg
(
ret
);
ir_node
*
start
=
get_irg_start
(
irg
);
ir_node
*
block
=
get_nodes_block
(
start
);
ir_node
*
block
=
get_nodes_block
(
ret
);
ir_type
*
frame_type
=
get_irg_frame_type
(
irg
);
unsigned
frame_size
=
get_type_size_bytes
(
frame_type
);
be_stack_layout_t
*
layout
=
be_get_irg_stack_layout
(
irg
);
...
...
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