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
00d62c12
Commit
00d62c12
authored
Apr 02, 2014
by
Matthias Braun
Browse files
amd64: mark spills/reloads as such
parent
ed23b154
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/amd64/amd64_transform.c
View file @
00d62c12
...
...
@@ -1776,6 +1776,7 @@ ir_node *amd64_new_spill(ir_node *value, ir_node *after)
ir_node
*
in
[]
=
{
value
,
frame
,
mem
};
ir_node
*
store
=
new_bd_amd64_Store
(
NULL
,
block
,
ARRAY_SIZE
(
in
),
in
,
&
attr
);
arch_set_irn_register_reqs_in
(
store
,
reg_reg_mem_reqs
);
arch_add_irn_flags
(
store
,
arch_irn_flag_spill
);
sched_add_after
(
after
,
store
);
return
store
;
}
...
...
@@ -1796,6 +1797,7 @@ ir_node *amd64_new_reload(ir_node *value, ir_node *spill, ir_node *before)
ir_node
*
load
=
new_bd_amd64_Mov
(
NULL
,
block
,
ARRAY_SIZE
(
in
),
in
,
INSN_MODE_64
,
AMD64_OP_ADDR
,
addr
);
arch_set_irn_register_reqs_in
(
load
,
reg_mem_reqs
);
arch_add_irn_flags
(
load
,
arch_irn_flag_reload
);
sched_add_before
(
before
,
load
);
amd64_addr_attr_t
*
attr
=
get_amd64_addr_attr
(
load
);
attr
->
needs_frame_ent
=
true
;
...
...
Write
Preview
Supports
Markdown
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