mirror of git://gcc.gnu.org/git/gcc.git
ipa-utils.c (ipa_merge_profiles): Do no merging when source function has zero count.
* ipa-utils.c (ipa_merge_profiles): Do no merging when source function has zero count. From-SVN: r267174
This commit is contained in:
parent
305f1fb783
commit
6263c29d28
|
|
@ -1,3 +1,8 @@
|
||||||
|
2018-12-15 Jan Hubicka <hubicka@ucw.cz>
|
||||||
|
|
||||||
|
* ipa-utils.c (ipa_merge_profiles): Do no merging when source function
|
||||||
|
has zero count.
|
||||||
|
|
||||||
2018-12-15 Jakub Jelinek <jakub@redhat.com>
|
2018-12-15 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
PR tree-optimization/88464
|
PR tree-optimization/88464
|
||||||
|
|
|
||||||
|
|
@ -402,6 +402,10 @@ ipa_merge_profiles (struct cgraph_node *dst,
|
||||||
if (src->profile_id && !dst->profile_id)
|
if (src->profile_id && !dst->profile_id)
|
||||||
dst->profile_id = src->profile_id;
|
dst->profile_id = src->profile_id;
|
||||||
|
|
||||||
|
/* Merging zero profile to dst is no-op. */
|
||||||
|
if (src->count.ipa () == profile_count::zero ())
|
||||||
|
return;
|
||||||
|
|
||||||
/* FIXME when we merge in unknown profile, we ought to set counts as
|
/* FIXME when we merge in unknown profile, we ought to set counts as
|
||||||
unsafe. */
|
unsafe. */
|
||||||
if (!src->count.initialized_p ()
|
if (!src->count.initialized_p ()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue