[Bug fortran/60661] DO CONCURRENT with MASK: Avoid using a temporary for the mask

tkoenig at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Aug 10 15:50:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60661

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-08-10
     Ever confirmed|0                           |1

--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
For

do concurrent(i=1:n, a(i)>sum(a)/n)

we currently evaluate the sum every time.  This can
definitely be improved, by taking out expressions which
do not depend on the index variable out of the mask.



More information about the Gcc-bugs mailing list