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
c9665fa5
Commit
c9665fa5
authored
May 31, 2011
by
Andreas Zwinkau
Browse files
optimize_blocks ignores unreachable blocks
Fixes opt/ioet.c
parent
443bd8c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/cfopt.c
View file @
c9665fa5
...
...
@@ -283,6 +283,11 @@ static void optimize_blocks(ir_node *b, void *ctx)
ir_node
**
in
;
merge_env
*
env
=
(
merge_env
*
)
ctx
;
if
(
get_Block_dom_depth
(
b
)
<
0
)
{
/* ignore unreachable blocks */
return
;
}
/* Count the number of predecessor if this block is merged with pred blocks
that are empty. */
max_preds
=
0
;
...
...
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