Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Elias Aebi
libfirm
Commits
1953ce88
Commit
1953ce88
authored
May 26, 2011
by
Andreas Zwinkau
Browse files
Another Bad mode fix
parent
2ce80083
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/cfopt.c
View file @
1953ce88
...
...
@@ -373,7 +373,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
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