This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [dataflow] Plug leak in chain computation
- From: Kenneth Zadeck <zadeck at naturalbridge dot com>
- To: bonzini at gnu dot org
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 03 Apr 2007 11:50:42 -0400
- Subject: Re: [dataflow] Plug leak in chain computation
- References: <46126BBA.9030907@lu.unisi.ch>
Paolo Bonzini wrote:
> Found with --enable-gather-detailed-mem-stats. Pretty
> self-explaining.
>
> Seems to gain 2% on PR28071, it might be just
> a fluctuation but I can repeat it.
>
> Paolo
>
> 2007-04-03 Paolo Bonzini <bonzini@gnu.org>
>
> * df-problems.c (df_chain_create_bb): Plug leak.
>
>
> Index: df-problems.c
> ===================================================================
> --- df-problems.c (revision 123474)
> +++ df-problems.c (working copy)
> @@ -3705,6 +3705,8 @@ df_chain_create_bb (unsigned int bb_inde
> df_chain_create_bb_process_use (cpy,
> df_get_artificial_uses (bb->index),
> 0);
> +
> + BITMAP_FREE (cpy);
> }
>
> /* Create def-use chains from reaching use bitmaps for basic blocks
>
if you did not check it in as obvious, you are cleared to do so.