This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] Avoid induction variables in DO loops.
On Thu, 2004-10-07 at 08:29 +0800, Canqun Yang wrote:
> Daniel Berlin <dberlin@dberlin.org>:
>
> > >
> > > Hopefully it should be sufficient to enable the
> SPEC loop interchange,
> > > though
> > > I haven't checked.
> >
> > I'll check.
> > We still need sebastian's data dependence patch
> approved for mainline
> > before it would happen there, but i have a mainline
> tree with the patch
> > in it handy :P.
> >
> >
> Gfortran frontend converts multi-dimensional array
> reference to one-dimensional array reference.
> According to my test with LNO branch, GCC's data
> dependence analysis for nested loops (defined in tree-
> data-ref.c) can not work for such array references.
What?
What makes you think that it can't work?
We perform interchange, etc, of lowered dimension arrays just fine.
> Can sebastian's patch resolve this problem?
Sebastian's patch is already applied to LNO, so if it doesn't work
there, it won't work on mainline.