aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-05-05 14:44:16 +0200
committerMartin Liska <mliska@suse.cz>2022-05-05 14:44:16 +0200
commit4b03970c423c1914d4fed9dfd56a1959c41626fb (patch)
tree7516b42f94ed199d840005432a3b1d7d53f92dc3 /gcc
parentee1cb43bc76de800efa0ade687b0cd28e62a5f82 (diff)
downloadgcc-4b03970c423c1914d4fed9dfd56a1959c41626fb.zip
gcc-4b03970c423c1914d4fed9dfd56a1959c41626fb.tar.gz
gcc-4b03970c423c1914d4fed9dfd56a1959c41626fb.tar.bz2
Remove sanity checking in stream_out_histogram_value.
gcc/ChangeLog: * value-prof.cc (stream_out_histogram_value): Remove sanity checking.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/value-prof.cc12
1 files changed, 0 insertions, 12 deletions
diff --git a/gcc/value-prof.cc b/gcc/value-prof.cc
index c240a18..9656ce5 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)