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/40472] Simplification of spread intrinsic takes a long time



------- 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


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