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
65ee28ab
Commit
65ee28ab
authored
Dec 21, 2015
by
yb9976
Browse files
Reuse try_create_dest_am for sub-cmp-transformation.
This fixes backend/destam_flags3.c.
parent
5a7a2ef8
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_transform.c
View file @
65ee28ab
...
...
@@ -3082,14 +3082,11 @@ static ir_node *transform_sub_or_store(ir_node *sub)
if
(
outs
==
1
)
{
ir_node
*
succ
=
get_irn_out
(
sub
,
0
);
if
(
is_Store
(
succ
)
&&
!
be_is_transformed
(
succ
))
{
ir_node
*
new_store
=
be_transform_node
(
succ
);
if
(
is_ia32_SubMem
(
new_store
))
{
ir_node
*
new_store
=
try_create_dest_am
(
succ
);
if
(
new_store
)
{
assert
(
is_ia32_SubMem
(
new_store
));
be_set_transformed_node
(
succ
,
new_store
);
return
new_store
;
}
else
{
ir_node
*
result
=
get_irn_n
(
new_store
,
n_ia32_Store_val
);
if
(
is_Proj
(
result
))
result
=
get_Proj_pred
(
result
);
return
result
;
}
}
}
...
...
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