Remove wrong bail out in prune_topn_counter.

	* libgcov-driver.c (prune_topn_counter): Remove
	check for -1 as we only prune run-time counters
	that do not generate an invalid state.
parent 14e5e746
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
......
......@@ -219,17 +219,12 @@ static struct gcov_fn_buffer *fn_buffer;
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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment