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
fe6c9130
Commit
fe6c9130
authored
Sep 01, 2011
by
Andreas Zwinkau
Browse files
Let collect_nodes cope with Bad nodes
parent
72c631f3
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/opt/cfopt.c
View file @
fe6c9130
...
...
@@ -115,9 +115,15 @@ static void collect_nodes(ir_node *n, void *ctx)
/* block with a jump label attached cannot be removed. */
set_Block_removable
(
n
,
false
);
}
}
else
if
(
is_Bad
(
n
)
||
is_Jmp
(
n
))
{
/* ignore these */
return
;
}
else
if
(
!
is_Jmp
(
n
))
{
/* Check for non-empty block. */
}
else
{
/* Check for non-empty block. */
ir_node
*
block
=
get_nodes_block
(
n
);
if
(
is_Bad
(
block
))
return
;
set_Block_removable
(
block
,
false
);
if
(
is_Proj
(
n
))
{
...
...
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