Commit 5a686851 by Bin Cheng Committed by Bin Cheng

ipa-cp.c (update_profiling_info): Call adjust_for_ipa_scaling for zero profile count.

	* ipa-cp.c (update_profiling_info): Call adjust_for_ipa_scaling for
	zero profile count.

From-SVN: r266918
parent 019761d2
2018-12-08 Bin Cheng <bin.cheng@linux.alibaba.com>
* ipa-cp.c (update_profiling_info): Call adjust_for_ipa_scaling for
zero profile count.
2018-12-08 Jakub Jelinek <jakub@redhat.com>
PR fortran/88304
......@@ -3719,9 +3719,11 @@ update_profiling_info (struct cgraph_node *orig_node,
new_sum = orig_node_count.combine_with_ipa_count (new_sum);
orig_node->count = remainder;
profile_count::adjust_for_ipa_scaling (&new_sum, &orig_node_count);
for (cs = new_node->callees; cs; cs = cs->next_callee)
cs->count = cs->count.apply_scale (new_sum, orig_node_count);
profile_count::adjust_for_ipa_scaling (&remainder, &orig_node_count);
for (cs = orig_node->callees; cs; cs = cs->next_callee)
cs->count = cs->count.apply_scale (remainder, orig_node_count);
......
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