This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32131] knowing that stride==1 when using allocated arrays and escaping allocatable arrays
- From: "jb at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 May 2007 17:51:10 -0000
- Subject: [Bug fortran/32131] knowing that stride==1 when using allocated arrays and escaping allocatable arrays
- References: <bug-32131-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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