Commit b225a29b by Jan Hubicka Committed by Jan Hubicka

profile-count.c (profile_count::combine_with_ipa_count): Return uninitialized…

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
parent c3f1ae8a
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
redirecting.
......@@ -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;
......
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