From 6439c358063d3660e08a7931d720b901282879f8 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 30 Jan 2018 13:46:19 +0100 Subject: 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 --- gcc/profile-count.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/profile-count.c') 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 (); -- cgit v1.1