This is the mail archive of the gcc-bugs@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]

[Bug fortran/32131] knowing that stride==1 when using allocated arrays and escaping allocatable arrays



------- Comment #6 from jb at gcc dot gnu dot org  2007-05-29 17:51 -------
Reopening. This vectorizes only partly, with -ffast-math to boot. We should be
able to vectorize it without doing any "unsafe" math.

gfortran -O2 -ffast-math -march=native -mfpmath=sse -ftree-vectorize
-ftree-vectorizer-verbose=6 allocate-loop.f90

allocate-loop.f90:15: note: LOOP VECTORIZED.
allocate-loop.f90:14: note: LOOP VECTORIZED.
allocate-loop.f90:10: note: Vectorizing an unaligned access.
allocate-loop.f90:10: note: LOOP VECTORIZED.
allocate-loop.f90:9: note: not vectorized: data ref analysis failed D.1424_40 =
(*D.1371_14)[D.1423_39]
allocate-loop.f90:1: note: vectorized 3 loops in function.

and without -ffast-math:

gfortran -O2 -march=native -mfpmath=sse -ftree-vectorize
-ftree-vectorizer-verbose=6 allocate-loop.f90

allocate-loop.f90:15: note: not vectorized: unsupported use in stmt.
allocate-loop.f90:14: note: LOOP VECTORIZED.
allocate-loop.f90:10: note: not vectorized: unsupported use in stmt.
allocate-loop.f90:9: note: not vectorized: data ref analysis failed D.1424_40 =
(*D.1371_14)[D.1423_39]
allocate-loop.f90:1: note: vectorized 1 loops in function.


-- 

jb at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32131


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