This one does get vectorized with autovect-branch:
[ example with source and destination array exactly overlapping ]
~/autovect_cvs/bin/gfortran -O3 -ftree-vectorize -maltivec
-ftree-vectorizer-verbose=4 -S hilaram1.f90
hilaram1.f90:5: note: dependence distance
Hi Toon,
Thanks for the testcases.
This one does get vectorized with autovect-branch:
~/autovect_cvs/bin/gfortran -O3 -ftree-vectorize -maltivec
-ftree-vectorizer-verbose=4 -S hilaram1.f90
hilaram1.f90:5: note: dependence distance = 0.
hilaram1.f90:5: note: accesses have the same alignmen
On Oct 21, 2005 03:12 PM, Toon Moene <[EMAIL PROTECTED]> wrote:
> L.S.,
Toon S., welcome back :-)
May I suggest you try the autovect-branch too, a lot of vectorizer
enhancements are still pending there...
Gr.
Steven
L.S.,
This code:
SUBROUTINE S(N, M)
DIMENSION A(N, M), B(N, M)
READ*,A,B
DO J = 1, M
DO I = 1, N
A(I, J) = A(I, J) + B(I, J)
ENDDO
ENDDO
PRINT*,A
END
when compiled thusly:
$ gfortran -g -S -O3 -ftree-vectorize -ftree-vector