projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b57b02e
)
cfopt: Remove unnecessary start block test.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 5 Dec 2012 11:03:18 +0000
(12:03 +0100)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Wed, 5 Dec 2012 14:06:22 +0000
(15:06 +0100)
The start block does not end in a Jmp, which the next if checks.
ir/opt/cfopt.c
patch
|
blob
|
history
diff --git
a/ir/opt/cfopt.c
b/ir/opt/cfopt.c
index
51648f2
..
1e0b199
100644
(file)
--- a/
ir/opt/cfopt.c
+++ b/
ir/opt/cfopt.c
@@
-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 */
}