mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-19 06:10:26 +08:00
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
This commit is contained in:
parent
85bb2f9a30
commit
6439c35806
@ -1,3 +1,8 @@
|
||||
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>
|
||||
|
||||
PR tree-optimization/83008
|
||||
|
@ -321,7 +321,7 @@ profile_count::combine_with_ipa_count (profile_count ipa)
|
||||
ipa = ipa.ipa ();
|
||||
if (ipa.nonzero_p ())
|
||||
return ipa;
|
||||
if (!ipa.initialized_p ())
|
||||
if (!ipa.initialized_p () || *this == profile_count::zero ())
|
||||
return *this;
|
||||
if (ipa == profile_count::zero ())
|
||||
return this->global0 ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user