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: make genattrtab generate smaller code


> 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>


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