This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Varray memory consumption strikes back
On Tue, 2004-09-14 at 02:00, Richard Henderson wrote:
> On Mon, Sep 13, 2004 at 10:48:15PM -0600, Jeffrey A Law wrote:
> > Another would be to have a single varray for expressions rather
> > than having a varray per block for expressions. Each element in
> > that varray would have the expression and the block associated
> > with the expression.
> >
> > In the finalizer, you pop elements off that varray as long as
> > their block matches the block we are leaving. Remove each
> > of the popped elements from the available expression hash
> > table.
>
> Or: Push a marker expression, e.g. NULL, on entry to any block.
> In the finalizer, pop entries until reaching the marker.
Yup. That may be the best way to deal with the block local
avail_exprs varray.
jeff