This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: machine-dependent Passes on GIMPLE/SSA Tree's?
- From: Jeffrey Law <law at redhat dot com>
- To: Diego Novillo <dnovillo at redhat dot com>
- Cc: Markus dot Franke at informatik dot tu-chemnitz dot de, gcc at gcc dot gnu dot org
- Date: Mon, 27 Nov 2006 13:16:32 -0500
- Subject: Re: machine-dependent Passes on GIMPLE/SSA Tree's?
- References: <456B2562.7070302@informatik.tu-chemnitz.de> <456B29B1.20201@redhat.com>
- Reply-to: law at redhat dot com
On Mon, 2006-11-27 at 13:08 -0500, Diego Novillo wrote:
> Markus Franke wrote on 11/27/06 12:50:
>
> > Are there also some other optimisation passes working on the GIMPLE/SSA
> > representation which make use of any machine-dependent features?
> >
> Yes. Passes like vectorization and loop optimizations will use so
> called 'target hooks' which allow the high-level passes to query the
> target for various capabilities and attributes. See the tree-vect*.c
> files for several examples.
Note that in general we're trying to avoid introducing target dependent
stuff into the gimple/SSA optimizers. We should consider the
vectorization code as the exception rather than the rule for this
kind of thing.
Jeff