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
ad16256a
Commit
ad16256a
authored
Mar 28, 2013
by
yb9976
Browse files
Merge blocks to preserve keep-alive edges.
This fixes opt/fehler211.c and opt/fehler212.c.
parent
aa92a9fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/cfopt.c
View file @
ad16256a
...
...
@@ -476,9 +476,9 @@ static void optimize_blocks(ir_node *b, void *ctx)
in
[
n_preds
++
]
=
predpred
;
}
/* Remove
block+jump as it
might be kept alive. */
/* Remove
jump and merge blocks as they
might be kept alive. */
exchange
(
pred
,
new_r_Bad
(
get_irn_irg
(
b
),
mode_X
));
exchange
(
predb
,
new_r_Bad
(
get_irn_irg
(
b
),
mode_BB
)
);
exchange
(
predb
,
b
);
}
else
{
/* case 3: */
in
[
n_preds
++
]
=
pred
;
...
...
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