This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Beginner's question:Are there any inter-procedural optimizationin GCC backend ?
Matt Austern <austern@apple.com> writes:
> On Nov 6, 2003, at 12:48 PM, Zack Weinberg wrote:
>> Right. The idea is to use a strict policy of "live from allocation
>> until the end of rest_of_compilation" for _all_ RTL (perhaps with a
>> handful of exceptions of the form "live from allocation until process
>> exit" which I am hoping to minimize, since they will accumulate
>> undesirably in a multi-translation-unit compilation). If this can be
>> done, then RTL can be shoved on a single obstack (or similar) which is
>> recycled en masse at the end of rest_of_compilation. The GC never
>> sees it, PCH never sees it, it doesn't suffer internal fragmentation,
>> and the odds are the same chunk of memory will be used repeatedly for
>> successive functions.
>
> Are you planning to do this for 3.4, or 3.5?
3.5. It is far too invasive for 3.4, alas.
zw