This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] minor bitmap.c GATHER_STATISTICS fix-ups
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: Steven Bosscher <stevenb dot gcc at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 7 Mar 2013 10:55:12 +0100
- Subject: Re: [patch] minor bitmap.c GATHER_STATISTICS fix-ups
- References: <CABu31nNs3ivUnwzWUSBMrwTJGixH5YAjdvj0G0KFNTjRAzazbg@mail.gmail.com>
On Thu, Mar 7, 2013 at 12:04 AM, Steven Bosscher <stevenb.gcc@gmail.com> wrote:
> Hello,
>
> This patch fixes a bunch of smaller issues with GATHER_STATISTICS for
> bitmaps: overflows in counters and ugly output format.
>
> Bootstrapped (with and without GATHER_STATISTICS) and regtested on
> powerpc64-unknown-linux-gnu and on x86_64-unknown-linux-gnu. OK for
> trunk?
Ok.
Thanks,
Richard.
> Ciao!
> Steven
>
>
> * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
> for all counters.
> (struct output_info): Likewise.
> (register_overhead): Remove bad gcc_assert.
> (bitmap_find_bit): If there is only a single bitmap element, do not
> count a miss as a search.
> (print_statistics): Update for counter type changes.
> (dump_bitmap_statistics): Likewise. Print headers such that they
> are properly lined up with the printed counters.