This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Fortran] Improved dependency analysis of pointer variables


Quoting Tobias Schlüter <Tobias.Schlueter@Physik.Uni-Muenchen.DE>:
> I marveled at that line earlier myself.  I think it's wrong.  If offset is
> the
> number of storage units / bytes / whatever that the object is into the common
> block, then the inequality would not be correct for a dependency where the
> stride is negative (i.e. a(5:1:-1)), so I think the right course of action is
> to remove that check, and only do smart stuff if there are no equivalences
> involved.

Forgot to say: if we decide to keep it, the comment in front of the function
should be enhanced, I couldn't tell from it which argument represents the
source, and which the destination.

- Tobi




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]