diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2018-01-30 13:46:19 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2018-01-30 12:46:19 +0000 |
commit | 6439c358063d3660e08a7931d720b901282879f8 (patch) | |
tree | 21d1b2721c16a8248f98d5a00178b0dce4296ecd /gcc | |
parent | 85bb2f9a302acc28dbae6c368d63680aacb15eb1 (diff) | |
download | gcc-6439c358063d3660e08a7931d720b901282879f8.zip gcc-6439c358063d3660e08a7931d720b901282879f8.tar.gz gcc-6439c358063d3660e08a7931d720b901282879f8.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/profile-count.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7be83e9..f20ec74 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/profile-count.c b/gcc/profile-count.c index c3b115f..3d411cf 100644 --- a/gcc/profile-count.c +++ b/gcc/profile-count.c @@ -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 (); |