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: Optimization of gfortran for execution speed


Dominique Dhumieres wrote:
>>...
>>- don't forget to check that you don't break stuff like
>>   a(1:N-1) = a(2:N)
>>...
> 
> 
> That's the easy case without dependency, the dangerous one
> is a(2:N) = a(1:N-1) that should be scalarized as
> a(N:2:-1) = a(N-1:1:-1) (I hope it's correct).

Well, my concern is still valid :-) but of course I had meant your example.

- Tobi


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