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
c2ebba1f
Commit
c2ebba1f
authored
Jan 12, 2015
by
Christoph Mallon
Browse files
amd64: When turning an sub into neg+add copy the in requirements to the add.
Otherwise we end up with an add without in requirements.
parent
d26de5d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/amd64/amd64_finish.c
View file @
c2ebba1f
...
...
@@ -111,6 +111,7 @@ static void transform_sub_to_neg_add(ir_node *node,
ir_node
*
in
[]
=
{
neg_res
,
in1
};
add
=
new_bd_amd64_add
(
dbgi
,
block
,
ARRAY_SIZE
(
in
),
in
,
attr
);
arch_set_irn_register_reqs_in
(
add
,
arch_get_irn_register_reqs_in
(
node
));
add_res
=
new_r_Proj
(
add
,
mode_Lu
,
pn_amd64_add_res
);
}
arch_set_irn_register
(
add_res
,
out_reg
);
...
...
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