This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/60661] DO CONCURRENT with MASK: Avoid using a temporary for the mask
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 10 Aug 2014 15:50:18 +0000
- Subject: [Bug fortran/60661] DO CONCURRENT with MASK: Avoid using a temporary for the mask
- Auto-submitted: auto-generated
- References: <bug-60661-4 at http dot gcc dot gnu dot org/bugzilla/>
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.