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
cd68f004
Commit
cd68f004
authored
Dec 21, 2015
by
yb9976
Browse files
Use be_get_or_make_Proj_for_pn, since the Proj may already exists.
This fixes multiple tests with -O0.
parent
48bdced2
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/be/ia32/ia32_transform.c
View file @
cd68f004
...
...
@@ -3094,9 +3094,9 @@ static ir_node *try_get_sub_flags(ir_node *cmp, ir_node *sub, bool *swap)
ir_node
*
ia32_sub
=
skip_Proj
(
transform_sub_or_store
(
sub
));
if
(
is_ia32_Sub
(
ia32_sub
))
{
return
be_
new_Proj
(
ia32_sub
,
pn_ia32_Sub_flags
);
return
be_
get_or_make_Proj_for_pn
(
ia32_sub
,
pn_ia32_Sub_flags
);
}
else
if
(
is_ia32_SubMem
(
ia32_sub
))
{
return
be_
new_Proj
(
ia32_sub
,
pn_ia32_SubMem_flags
);
return
be_
get_or_make_Proj_for_pn
(
ia32_sub
,
pn_ia32_SubMem_flags
);
}
else
{
panic
(
"unknown variant of Sub at %+F"
,
ia32_sub
);
}
...
...
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