Commit 6439c358 by Jan Hubicka Committed by Jan Hubicka

profile-count.c (profile_count::combine_with_ipa_count): Handle zeros correctly.

	* profile-count.c (profile_count::combine_with_ipa_count): Handle
	zeros correctly.

From-SVN: r257182
parent 85bb2f9a
2018-01-30 Jan Hubicka <hubicka@ucw.cz>
* profile-count.c (profile_count::combine_with_ipa_count): Handle
zeros correctly.
2018-01-30 Richard Biener <rguenther@suse.de> 2018-01-30 Richard Biener <rguenther@suse.de>
PR tree-optimization/83008 PR tree-optimization/83008
......
...@@ -321,7 +321,7 @@ profile_count::combine_with_ipa_count (profile_count ipa) ...@@ -321,7 +321,7 @@ profile_count::combine_with_ipa_count (profile_count ipa)
ipa = ipa.ipa (); ipa = ipa.ipa ();
if (ipa.nonzero_p ()) if (ipa.nonzero_p ())
return ipa; return ipa;
if (!ipa.initialized_p ()) if (!ipa.initialized_p () || *this == profile_count::zero ())
return *this; return *this;
if (ipa == profile_count::zero ()) if (ipa == profile_count::zero ())
return this->global0 (); return this->global0 ();
......
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