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.