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