projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dfe86d
)
end block can also have 0 predecessors
author
Matthias Braun
<matze@braunis.de>
Sun, 28 Oct 2007 12:51:17 +0000
(12:51 +0000)
committer
Matthias Braun
<matze@braunis.de>
Sun, 28 Oct 2007 12:51:17 +0000
(12:51 +0000)
[r16374]
ir/be/beblocksched.c
patch
|
blob
|
history
diff --git
a/ir/be/beblocksched.c
b/ir/be/beblocksched.c
index
953ca6d
..
69422b5
100644
(file)
--- a/
ir/be/beblocksched.c
+++ b/
ir/be/beblocksched.c
@@
-147,8
+147,10
@@
static void collect_egde_frequency(ir_node *block, void *data)
arity = get_Block_n_cfgpreds(block);
if (arity == 0) {
- assert(block == get_irg_start_block(env->irg));
- /* must be the start block, nothing to do here */
+ assert(block == get_irg_start_block(env->irg)
+ || block == get_irg_end_block(env->irg));
+ /* must be the start block (or end-block for endless loops), nothing to
+ * do here */
return;
} else if (arity == 1) {
edge.block = block;