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: Michael Matz <matz at suse dot de>
- To: Geoff Keating <geoffk at geoffk dot org>
- Cc: law at redhat dot com, <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 8 Sep 2003 07:29:21 +0200 (CEST)
- Subject: Re: make genattrtab generate smaller code
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) ? ;-)
Ciao,
Michael.