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
515a2140
Commit
515a2140
authored
Oct 28, 2007
by
Matthias Braun
Browse files
end block can also have 0 predecessors
[r16374]
parent
8dfe86de
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/beblocksched.c
View file @
515a2140
...
...
@@ -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
;
...
...
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