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
49dda300
Commit
49dda300
authored
Oct 27, 2011
by
Andreas Zwinkau
Browse files
Let normalize_n_returns cope with Bads
Fixes opt/fehler204 again.
parent
55a7a1f4
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/opt/return.c
View file @
49dda300
...
@@ -262,6 +262,8 @@ void normalize_n_returns(ir_graph *irg)
...
@@ -262,6 +262,8 @@ void normalize_n_returns(ir_graph *irg)
for
(
n_finals
=
n_rets
=
i
=
0
;
i
<
n
;
++
i
)
{
for
(
n_finals
=
n_rets
=
i
=
0
;
i
<
n
;
++
i
)
{
ir_node
*
ret
=
get_Block_cfgpred
(
endbl
,
i
);
ir_node
*
ret
=
get_Block_cfgpred
(
endbl
,
i
);
if
(
is_Bad
(
ret
))
continue
;
if
(
is_Return
(
ret
)
&&
can_move_ret
(
ret
))
{
if
(
is_Return
(
ret
)
&&
can_move_ret
(
ret
))
{
/*
/*
* Ok, all conditions met, we can move this Return, put it
* Ok, all conditions met, we can move this Return, put it
...
...
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