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
9e034e97
Commit
9e034e97
authored
Dec 05, 2012
by
Christoph Mallon
Browse files
cfopt: Remove unnecessary start block test.
The start block does not end in a Jmp, which the next if checks.
parent
b57b02e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/opt/cfopt.c
View file @
9e034e97
...
...
@@ -717,8 +717,6 @@ static void remove_empty_blocks(ir_node *block, void *x)
ir_node
*
pred
=
get_Block_cfgpred
(
jmp_block
,
0
);
ir_node
*
pred_block
=
get_nodes_block
(
pred
);
if
(
has_operations
(
&
env
->
block_infos
,
jmp_block
))
{
if
(
get_irg_start_block
(
get_irn_irg
(
pred_block
))
==
pred_block
)
continue
;
/* must not merge operations into start block */
if
(
!
is_Jmp
(
pred
))
continue
;
/* must not create partially dead code, especially when it is mode_M */
}
...
...
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