diff options
Diffstat (limited to 'libgcc/libgcov-driver.c')
-rw-r--r-- | libgcc/libgcov-driver.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/libgcc/libgcov-driver.c b/libgcc/libgcov-driver.c index cdb611d..fb32073 100644 --- a/libgcc/libgcov-driver.c +++ b/libgcc/libgcov-driver.c @@ -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. */ |