This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: tree inlining and alloca
- From: Geoff Keating <geoffk at geoffk dot org>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 16 Nov 2002 14:42:30 -0800
- Subject: Re: tree inlining and alloca
- References: <20021116182530.GA17736@atrey.karlin.mff.cuni.cz>
Jan Hubicka <jh@suse.cz> writes:
> Hi,
> I've just noticed that my callgraph inlinig patch causes SPEC2000 GCC to
> require 2GB of memory instead of 256MB it required previously. The reason is
> that function that does use alloca got inlined so the alloca blocks are not
> garbagecollected as the programmer intended and we allocate O(n^4) instead of
> O(n^2) memory!
>
> The comment in tree-inline mentiones that we used to refuse to inline functions
> that do call alloca and i think we still should for this very reason.
>
> Bootstrap/regtesting on mainline in progress. OK if it passes?
> What about 3.2 branch?
OK for mainline. I think 3.2 branch is closed.
--
- Geoffrey Keating <geoffk@geoffk.org>