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
573e42c2
Commit
573e42c2
authored
Sep 06, 2011
by
Andreas Zwinkau
Browse files
Fix cfopt bug due to infinite loops
parent
7c92f22b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/cfopt.c
View file @
573e42c2
...
...
@@ -742,6 +742,19 @@ static void remove_empty_blocks(ir_node *block, void *x)
continue
;
/* this block contains operations and cannot be skipped */
if
(
has_phis
(
env
->
phase
,
jmp_block
))
continue
;
/* this block contains Phis and is not skipped */
if
(
Block_block_visited
(
jmp_block
))
{
continue
;
/* otherwise we could break the walker,
* if block was reached via KeepAlive edge -> jmp_block -> A ---> block,
* because the walker cannot handle Id nodes.
*
* A B
* \ /
* jmp_block
* / \
* block End
*/
}
/* jmp_block is an empty block and can be optimized! */
...
...
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