This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Optimization of gfortran for execution speed
- From: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>
- To: Dominique Dhumieres <dominiq at lps dot ens dot fr>
- Cc: fortran at gcc dot gnu dot org
- Date: Thu, 20 Oct 2005 22:40:22 +0200
- Subject: Re: Optimization of gfortran for execution speed
- References: <4357FE37.mailOHO1PG2K2@tournesol.lps.ens.fr>
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