+2017-12-01 Jan Hubicka <hubicka@ucw.cz>
+
+ * ipa-cp.c (ipcp_lattice<valtype>::print): Update dumping.
+ (update_specialized_profile): Fix updating of counts.
+ (perhaps_add_new_callers): Likewise.
+
2017-12-01 Jan Hubicka <hubicka@ucw.cz>
PR target/81616
fprintf (f, " [from:");
for (s = val->sources; s; s = s->next)
- fprintf (f, " %i(%i)", s->cs->caller->order,
- s->cs->frequency ());
+ fprintf (f, " %i(%f)", s->cs->caller->order,
+ s->cs->sreal_frequency ().to_double ());
fprintf (f, "]");
}
orig_node->count -= redirected_sum;
for (cs = new_node->callees; cs; cs = cs->next_callee)
- if (cs->frequency ())
- cs->count += cs->count.apply_scale (redirected_sum, new_node_count);
- else
- cs->count = profile_count::zero ();
+ cs->count += cs->count.apply_scale (redirected_sum, new_node_count);
for (cs = orig_node->callees; cs; cs = cs->next_callee)
{
}
}
- if (redirected_sum > profile_count::zero ())
+ if (redirected_sum.nonzero_p ())
update_specialized_profile (val->spec_node, node, redirected_sum);
}