This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [dataflow] Plug leak in chain computation


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]