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
44f66f63
Commit
44f66f63
authored
May 24, 2013
by
Christoph Mallon
Browse files
Increase the visited flag before using it.
This ensures that only kept blocks get the extra weight for the keep edge.
parent
10d317fb
Changes
1
Show whitespace changes
Inline
Side-by-side
ir/ana/execfreq.c
View file @
44f66f63
...
...
@@ -301,6 +301,7 @@ void ir_estimate_execfreq(ir_graph *irg)
* do not reach the End block) */
block_walk_no_keeps
(
end_block
);
/* mark all kept blocks as (node)visited */
inc_irg_visited
(
irg
);
const
ir_node
*
end
=
get_irg_end
(
irg
);
int
const
n_keepalives
=
get_End_n_keepalives
(
end
);
for
(
int
k
=
n_keepalives
-
1
;
k
>=
0
;
--
k
)
{
...
...
Write
Preview
Supports
Markdown
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