aboutsummaryrefslogtreecommitdiff
path: root/gcc/profile-count.c
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2018-01-30 13:46:19 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2018-01-30 12:46:19 +0000
commit6439c358063d3660e08a7931d720b901282879f8 (patch)
tree21d1b2721c16a8248f98d5a00178b0dce4296ecd /gcc/profile-count.c
parent85bb2f9a302acc28dbae6c368d63680aacb15eb1 (diff)
downloadgcc-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/profile-count.c')
-rw-r--r--gcc/profile-count.c2
1 files changed, 1 insertions, 1 deletions
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 ();