This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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: Translation of multidimensional arrays


> > > I have thought about this as well; I think in most cases you can avoid
> > > having two representations of the array live at the same time
> >
> > I'm not convinced by any argument that involves not being "live at the
> > same time". Doesn't that just make it harder to find the bug when some
> > optimization pass rearranges the code and makes them live at the same
> > time.
>
> what should be the problem, then?  They do not share the same location
> then,  and thus they cannot alias.  Even if alias analysis gets it wrong
> and claims they do, it cannot cause any problems (except for missing some
> optimizations).
>
> You can only potentially run into problems when you would have two arrays
> of different shape sharing the same location; this may happen for array
> sections and assumed shape/size arrays, so one has to be a bit careful in
> these cases; but reallocatable arrays should not cause problems.

Right. I meant dummy arrays.

Paul


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