This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gc-improv] Permanent vs function RTL obstack fix
2011/4/9 Steven Bosscher <stevenb.gcc@gmail.com>:
> 4. RTL per function. GCC expands one GIMPLE function at a time, and
> the idea is to initialize the RTL obstack once when expanding starts,
> let it grow until final, and blow it away after final. Unlike 20 years
> ago, this obstack is never rolled back during RTL passes. This relies
> on generating not too much garbage, but memory for per-function RTL
> should be dwarfed by per-translation unit GIMPLE anyway.
Well, I have plans to see if it is worthwhile for pass like combine to
rollback the function obstack to do away with scratch RTL. Of course
this depends, on how much memory can be saved by doing this - in
comparison to current GC.
--
Laurynas