This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GIMPLE / induction variable analysis
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: "Jay L. T. Cornwall" <jay dot cornwall at imperial dot ac dot uk>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 09 Jun 2006 17:54:41 -0400
- Subject: Re: GIMPLE / induction variable analysis
- References: <4489D582.5040901@imperial.ac.uk>
Jay L. T. Cornwall wrote:
> Hi,
>
> I'm looking for an induction variable analysis which will operate at the
> GIMPLE level. So far, I've found...
>
> loop-iv.c -- RTL induction variable analysis
> tree-ssa-loop-ivopts.c -- GIMPLE induction variable analysis
>
This is not quite true. It's mostly done by SCEV in
analyze_scalar_evolution.
> The latter appears to be the right choice but nearly all of the
> functions - and certainly the key data structures
- are placed in the .c
> file, hidden away from the outside world.
Uh, no, actually they are in tree-scalar-evolution.[ch] and
tree-chrec.[ch] (analyze_scalar_evolution gives chrecs).
HTH,
Dan