This is the mail archive of the
mailing list for the GCC project.
Re: [tree-ssa] do not produce useless copies
> On Sat, 22 Nov 2003, Jan Hubicka wrote:
> > this patch avoid copying of inline functions that are not inlined. For
> > some reason it saves one failure on x86-64, makes no difference on i686.
> > Must be unrelated bug.
> > It makes considerable difference on -O3 compilation (20% on Gerald's
> > testcase).
> PR8361? 20% in memory use or compile-time?
I've tested some of files from your application, but it should match
The reduction happens in amount of memory allocated by GGC. Peak memory
usage remains more or less unchanged. I didn't tested compilation time,
but the copying don't show top in the profiling so it is unlikely it
will have very large effect.
There are still improvements possible, I will work on this later (it is
possible to reorder the compilation queue in a way so we avoid all
copies in non-recusive graphs)
> Would this also be applicable to mainline? We do need anything we can
> get to improve compile time there as well for GCC 3.4!
No, we don't do any copying there, it happens only for branch.