* libgcov-driver.c (prune_topn_counter): Remove
check for -1 as we only prune run-time counters
that do not generate an invalid state.
+2020-01-23 Martin Liska <mliska@suse.cz>
+
+ * libgcov-driver.c (prune_topn_counter): Remove
+ check for -1 as we only prune run-time counters
+ that do not generate an invalid state.
+
2020-01-22 Martin Liska <mliska@suse.cz>
PR tree-optimization/92924
static void
prune_topn_counter (gcov_type *counters, gcov_type all)
{
- if (counters[1] == -1)
- return;
-
for (unsigned i = 0; i < GCOV_TOPN_VALUES; i++)
- {
- if (counters[2 * i + 1] < all)
- {
- counters[2 * i] = 0;
- counters[2 * i + 1] = 0;
- }
- }
+ if (counters[2 * i + 1] < all)
+ {
+ counters[2 * i] = 0;
+ counters[2 * i + 1] = 0;
+ }
}
/* Prune counters so that they are ready to store or merge. */