projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca735b1
)
never set the startblock to bad (even without the self-referencing loop)
author
Matthias Braun
<matze@braunis.de>
Thu, 8 Feb 2007 14:51:05 +0000
(14:51 +0000)
committer
Matthias Braun
<matze@braunis.de>
Thu, 8 Feb 2007 14:51:05 +0000
(14:51 +0000)
[r8612]
ir/ir/iropt.c
patch
|
blob
|
history
diff --git
a/ir/ir/iropt.c
b/ir/ir/iropt.c
index
8adb26c
..
dcc0a90
100644
(file)
--- a/
ir/ir/iropt.c
+++ b/
ir/ir/iropt.c
@@
-3811,7
+3811,13
@@
static INLINE ir_node *gigo(ir_node *node)
if (!is_Bad(get_irn_n(block, i)))
break;
}
- if (i == irn_arity) return new_Bad();
+ if (i == irn_arity) {
+ ir_graph *irg = get_irn_irg(block);
+ /* the start block is never dead */
+ if(block != get_irg_start_block(irg)
+ && block != get_irg_end_block(irg))
+ return new_Bad();
+ }
}
}