This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/32457] [4.3 Regression] Complete program optimized away (i686, -ftree-vectorize)
- From: "spop at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jun 2007 16:04:00 -0000
- Subject: [Bug target/32457] [4.3 Regression] Complete program optimized away (i686, -ftree-vectorize)
- References: <bug-32457-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from spop at gcc dot gnu dot org 2007-06-26 16:03 -------
Subject: Re: [4.3 Regression] Complete program optimized away (i686,
-ftree-vectorize)
I just reduced the problem to this snippet: the problem seems to be
that the data dependence analysis is wrong by answering that there is
no dependence on the first loop on RBOUND(N) and RBOUND(N-1) accesses
so I'll have to correct that.
SUBROUTINE KEEL(RBOUND)
REAL, DIMENSION(0:100) :: RBOUND
DO N = 1, NP1
RBOUND(N) = RBOUND(N-1) + 1
END DO
DO N = 1, NS
WRITE (16,'(I5)') SRAD(N)
END DO
END SUBROUTINE KEEL
An auxiliary question, as I'm not programming in FORTRAN, is it okay
to have RBOUND(N-1) for N=1? I thought that the array indices start
from 1, and not from 0. As this is in the polyhedron benchmark, I
would say that it is valid code, but I'm a bit shocked ;-)
Sebastian
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32457