This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Memory leaks in compiler
- From: Victor Kaplansky <VICTORK at il dot ibm dot com>
- To: "Sebastian Pop" <sebpop at gmail dot com>
- Cc: Dorit Nuzman <DORIT at il dot ibm dot com>, "gcc mailing list" <gcc at gcc dot gnu dot org>
- Date: Wed, 16 Jan 2008 15:20:00 +0200
- Subject: Re: Memory leaks in compiler
> When a loop is vectorized, some statements are removed from the basic
> blocks, but the vectorizer information attached to these BBs is never
> freed. This is because the attached information is freed by walking
> the statements of the basic blocks: see tree-vectorizer.c:1750, but
> the transformed code does not contain all the stmts of the original
> code. I can't find out a good solution for tracking these stmts, but
> one solution could be to free the stmt_info when the stmts are removed
> from a BB.
Sebastian, thanks for bringing this to our attention. I'll look into this.
I hope that removing stmts from a BB can be easily localized.
-- Victor