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: Explicitly release memory used by varrays



On Sep 10, 2004, at 10:27 AM, Jeffrey A Law wrote:


On Thu, 2004-09-09 at 02:15, Jan Hubicka wrote:
Hi,
these varrays appears top in the list I sent, so I am adding code to
release them explicitely.  This itself save roughly 3% of garbage
produced on combine.c.

Bootstrapped/regtested ppc-linux, OK?

2004-09-09 Jan Hubicka <jh@suse.cz>
* tree-ssa-dom.c (tree_ssa_dominator_optimize, dom_opt_finalize_block):
Explicitly release varrays.
As I said, I would STRONGLY suggest you move this into the toplevel
SSA_NAME object rather than paper over the issue with ggc_free calls.
That will totally eliminate these two varrays, their resizing and
re-allocation for each call into the dominator optimizer.  That's
going to be a far more effective solution.

Do these things live over garbage collection anyway?
You could also start by replacing the ggc'd varrays with DEF_VEC_MALLOC_P'd vec's.



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