profile-count.c (profile_count::combine_with_ipa_count): Return uninitialized count if called on ininitialized count.

* profile-count.c (profile_count::combine_with_ipa_count): Return
	uninitialized count if called on ininitialized count.

From-SVN: r278815
This commit is contained in:
Jan Hubicka 2019-11-28 18:04:41 +01:00 committed by Jan Hubicka
parent c3f1ae8a30
commit b225a29b8c
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2019-11-28 Jan Hubicka <hubicka@ucw.cz>
* profile-count.c (profile_count::combine_with_ipa_count): Return
uninitialized count if called on ininitialized count.
2019-11-28 Jan Hubicka <hubicka@ucw.cz>
* ipa-inline-transform.c (inline_transform): Scale profile before

View file

@ -373,6 +373,8 @@ profile_count::adjust_for_ipa_scaling (profile_count *num,
profile_count
profile_count::combine_with_ipa_count (profile_count ipa)
{
if (!initialized_p ())
return *this;
ipa = ipa.ipa ();
if (ipa.nonzero_p ())
return ipa;