This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40472] Simplification of spread intrinsic takes a long time
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jun 2009 09:58:13 -0000
- Subject: [Bug fortran/40472] Simplification of spread intrinsic takes a long time
- References: <bug-40472-17820@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pault at gcc dot gnu dot org 2009-06-20 09:58 -------
This one must be fixed. When the upper limit on array simplification was
removed, it was with initialization expressions in mind. In this case, the
assignment compiles and runs at a sensible pace if there is no simplification,
as
REAL, DIMENSION(720,360) :: ZLON_MASK
INTEGER I
I = 720
ZLON_MASK(:,:)= SPREAD( (/ (JLON , JLON=1,I) /) , DIM=2, NCOPIES=360 )
END
shows (I suggest this as a workaround).
I have taken the PR
Paul
PS Daniel(comment #3) and I collided and so repeated the above workaround.
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pault at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2009-06-20 09:51:23 |2009-06-20 09:58:13
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40472