Commit 10f7b7f8 authored by yb9976's avatar yb9976
Browse files

Fixed bug that always sets profiled execfreq to zero.

parent e9c215cf
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment