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: tree inlining and alloca


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>


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