This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: make genattrtab generate smaller code
- From: Geoff Keating <geoffk at geoffk dot org>
- To: matz at suse dot de
- Cc: law at redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Mon, 8 Sep 2003 12:43:13 -0700
- Subject: Re: make genattrtab generate smaller code
- References: <Pine.LNX.4.44.0309080724080.13736-100000@wotan.suse.de>
> X-Original-To: geoffk@foam.wonderslug.com
> Date: Mon, 8 Sep 2003 07:29:21 +0200 (CEST)
> From: Michael Matz <matz@suse.de>
> Cc: law@redhat.com, <gcc-patches@gcc.gnu.org>
> X-OriginalArrivalTime: 08 Sep 2003 05:31:41.0481 (UTC) FILETIME=[7BA5C190:01C375CA]
>
> Hi,
>
> On 5 Sep 2003, Geoff Keating wrote:
>
> > > This kind of code is generated pretty regularly by the gt* generator.
> >
> > The problem is that while you know and I know that generic.common.type
> > is the same as generic.int_cst.common.type, gengtype doesn't know.
> > The best way to do this would be to write an optimisation pass in the
> > compiler that could detect identical code and commonize it
>
> You mean like cross jumping (i.e. tail merging) ? ;-)
Like that, except more like 'head merging'.
--
- Geoffrey Keating <geoffk@geoffk.org>