This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[dataflow] Plug leak in chain computation
- From: Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>, Kenneth Zadeck <zadeck at naturalbridge dot com>
- Date: Tue, 03 Apr 2007 16:59:06 +0200
- Subject: [dataflow] Plug leak in chain computation
- Reply-to: bonzini at gnu dot org
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