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
66c73eee
Commit
66c73eee
authored
Oct 09, 2006
by
Matthias Braun
Browse files
fix blocksched for blocks with arity==0
parent
36f59eee
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/beblocksched.c
View file @
66c73eee
...
...
@@ -128,7 +128,7 @@ static void collect_egde_frequency(ir_node *block, void *data)
}
else
{
int
i
;
double
highest_execfreq
=
-
1
;
int
highest_edge_num
;
int
highest_edge_num
=
-
1
;
edge
.
block
=
block
;
for
(
i
=
0
;
i
<
arity
;
++
i
)
{
...
...
@@ -148,7 +148,8 @@ static void collect_egde_frequency(ir_node *block, void *data)
}
}
env
->
edges
[
highest_edge_num
].
highest_execfreq
=
1
;
if
(
highest_edge_num
>=
0
)
env
->
edges
[
highest_edge_num
].
highest_execfreq
=
1
;
}
}
...
...
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