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
5a0479fb
Commit
5a0479fb
authored
May 25, 2011
by
Andreas Zwinkau
Browse files
Fix cfopt Bad mode
parent
3b745d6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/cfopt.c
View file @
5a0479fb
...
...
@@ -394,7 +394,9 @@ static void optimize_blocks(ir_node *b, void *ctx)
pred
=
get_Block_cfgpred_block
(
b
,
i
);
if
(
is_Bad
(
pred
))
{
in
[
q_preds
++
]
=
pred
;
ir_graph
*
irg
=
get_irn_irg
(
b
);
ir_mode
*
mode
=
get_irn_mode
(
phi
);
in
[
q_preds
++
]
=
new_r_Bad
(
irg
,
mode
);
}
else
if
(
is_Block_removable
(
pred
)
&&
!
Block_block_visited
(
pred
))
{
/* It's an empty block and not yet visited. */
for
(
j
=
0
;
j
<
get_Block_n_cfgpreds
(
pred
);
j
++
)
{
...
...
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