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:
parent
c3f1ae8a30
commit
b225a29b8c
2 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue