public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][pushed] Remove sanity checking in stream_out_histogram_value.
@ 2022-05-05 12:44 Martin Liška
  0 siblings, 0 replies; only message in thread
From: Martin Liška @ 2022-05-05 12:44 UTC (permalink / raw)
  To: gcc-patches; +Cc: Jan Hubicka

The patch is pre-approved by Honza.

Cheers,
Martin

gcc/ChangeLog:

	* value-prof.cc (stream_out_histogram_value): Remove sanity
	checking.
---
 gcc/value-prof.cc | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/gcc/value-prof.cc b/gcc/value-prof.cc
index c240a186336..9656ce5870d 100644
--- a/gcc/value-prof.cc
+++ b/gcc/value-prof.cc
@@ -331,18 +331,6 @@ stream_out_histogram_value (struct output_block *ob, histogram_value hist)
       /* When user uses an unsigned type with a big value, constant converted
 	 to gcov_type (a signed type) can be negative.  */
       gcov_type value = hist->hvalue.counters[i];
-      if (hist->type == HIST_TYPE_TOPN_VALUES
-	  || hist->type == HIST_TYPE_IOR)
-	/* Note that the IOR counter tracks pointer values and these can have
-	   sign bit set.  */
-	;
-      else if (hist->type == HIST_TYPE_INDIR_CALL && i == 0)
-	/* 'all' counter overflow is stored as a negative value. Individual
-	   counters and values are expected to be non-negative.  */
-	;
-      else
-	gcc_assert (value >= 0);
-
       streamer_write_gcov_count (ob, value);
     }
   if (hist->hvalue.next)
-- 
2.36.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-05 12:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-05 12:44 [PATCH][pushed] Remove sanity checking in stream_out_histogram_value Martin Liška

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).