This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] Unshare STMT_EXPR nodes [patch]
- From: Diego Novillo <dnovillo at redhat dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 9 Sep 2002 11:19:49 -0400
- Subject: Re: [tree-ssa] Unshare STMT_EXPR nodes [patch]
- Organization: Red Hat Canada
- References: <20020826140717.GA9869@tornado.toronto.redhat.com> <wvln0r88ud7.fsf@prospero.cambridge.redhat.com>
On Tue, 27 Aug 2002, Jason Merrill wrote:
> On Mon, 26 Aug 2002 10:07:18 -0400, Diego Novillo <dnovillo@redhat.com> wrote:
>
> > I'm working on a pass to unshare everything, but it won't work
> > until we stop the simplifier from creating shared trees (or we
> > could run the pass before/after simplification). This is so
> > irritating.
>
> I think we should run it after simplification. If that's too slow, we
> could just run it if ENABLE_CHECKING is on, with a flag that makes it abort
> if it sees shared trees.
>
But there are trees that will always be shared (decls,
constants). If we stop sharing decls, all the DFA and SSA
routines will die a horrible death.
Diego.