This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH, C++] Move a vector out of GC space
- From: Nathan Sidwell <nathan at codesourcery dot com>
- To: Andrew Pinski <pinskia at physics dot uc dot edu>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 02 Jan 2005 15:25:07 +0000
- Subject: Re: [PATCH, C++] Move a vector out of GC space
- Organization: Codesourcery LLC
- References: <58F3831E-595F-11D9-AB83-000A95D692F4@physics.uc.edu>
Andrew Pinski wrote:
I noticed that we had a vector in the C++ front-end which we knew the
life time of the vector. We also know that we cannot mark the vector
as being still in use as the structure which contains this vector
is not even marked as GC and it also only exists on the stack.
This patch moves this vector to the heap which should help compile
time but I did not measure any difference for PR 13677 (aka ir.cc).
I also just moved the definition of the vector from tree-flow.h
to tree.h so we can use it more places.
OK? Bootstrapped and tested on powerpc-darwin with no regressions.
Unless you measured a performance increase, can we wait until 4.1?
Dan Berlin & I want to change the vector interface slightly, as my
guess as to whether types would be closely tied to allocation scheme
turned out to be wrong.
Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
firstname.lastname@example.org :: http://www.planetfall.pwp.blueyonder.co.uk