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
10f7b7f8
Commit
10f7b7f8
authored
Sep 17, 2009
by
yb9976
Browse files
Fixed bug that always sets profiled execfreq to zero.
[r26536]
parent
e9c215cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ana/execfreq.c
View file @
10f7b7f8
...
...
@@ -236,6 +236,10 @@ ir_exec_freq *create_execfreq(ir_graph *irg)
execfreq
->
set
=
new_set
(
cmp_freq
,
32
);
memset
(
&
execfreq
->
hook
,
0
,
sizeof
(
execfreq
->
hook
));
// set reasonable values to convert double execfreq to ulong execfreq
execfreq
->
m
=
1
.
0
;
execfreq
->
hook
.
context
=
execfreq
;
execfreq
->
hook
.
hook
.
_hook_node_info
=
exec_freq_node_info
;
register_hook
(
hook_node_info
,
&
execfreq
->
hook
);
...
...
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