[Bug fortran/45676] Move array assignments out of loop

2015-11-01 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45676

Thomas Koenig  changed:

   What|Removed |Added

 Status|WAITING |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #6 from Thomas Koenig  ---
Closing as duplicate.

*** This bug has been marked as a duplicate of bug 30409 ***

[Bug fortran/45676] Move array assignments out of loop

2015-10-30 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45676

Dominique d'Humieres  changed:

   What|Removed |Added

 Status|UNCONFIRMED |WAITING
   Last reconfirmed||2015-10-30
 Ever confirmed|0   |1

--- Comment #5 from Dominique d'Humieres  ---
> Ha! I knew I have seen this before. Dupe of pr30409?

It looks so.


[Bug fortran/45676] Move array assignments out of loop

2010-12-26 Thread dfranke at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45676

Daniel Franke dfranke at gcc dot gnu.org changed:

   What|Removed |Added

 CC||dfranke at gcc dot gnu.org

--- Comment #4 from Daniel Franke dfranke at gcc dot gnu.org 2010-12-27 
01:22:56 UTC ---
Ha! I knew I have seen this before. Dupe of #30409?


[Bug fortran/45676] Move array assignments out of loop

2010-09-30 Thread tkoenig at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45676

--- Comment #3 from Thomas Koenig tkoenig at gcc dot gnu.org 2010-09-30 
21:28:22 UTC ---
(In reply to comment #2)
 We can't hoist invariant control flow.

Is this not possible, not desirable, or both?

In C, you could (in principle) also hoist

for (i=0; i10; i++) {
  for (j=0; j10; j++)
a[j] = j

/* Terms using a, no redefinition of a, no alias etc.  */

}
  Also print *,c is surely thought
 to be an escape point for c and thus may clobber it.

Yes, PR 20165...

 I'd rate this impossible to do for the middle-end (and generally not worth
 the hassle to implement).  Better fix your sources ;)

Well, if somebody does FORmula TRANslation and doesn't think about
this, there is not reason not to help him :-)


[Bug fortran/45676] Move array assignments out of loop

2010-09-15 Thread ubizjak at gmail dot com


--- Comment #1 from ubizjak at gmail dot com  2010-09-15 06:40 ---
Related to PR42108 and PR45223.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45676



[Bug fortran/45676] Move array assignments out of loop

2010-09-15 Thread rguenth at gcc dot gnu dot org


--- Comment #2 from rguenth at gcc dot gnu dot org  2010-09-15 09:47 ---
We can't hoist invariant control flow.  Also print *,c is surely thought
to be an escape point for c and thus may clobber it.

I'd rate this impossible to do for the middle-end (and generally not worth
the hassle to implement).  Better fix your sources ;)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45676