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: [PATCH, C++] Move a vector out of GC space


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

--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
nathan@codesourcery.com    ::     http://www.planetfall.pwp.blueyonder.co.uk


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