[Bug middle-end/31892] optimization: Loop not optimized away because of static

2020-08-31 Thread burnus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31892

Tobias Burnus  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|NEW |RESOLVED

--- Comment #2 from Tobias Burnus  ---
In the meanwhile FIXED: Now also fast with GCC 7 + -O1 (and with -O2 all traces
of the array are removed).

[Bug middle-end/31892] optimization: Loop not optimized away because of static

2012-02-01 Thread pinskia at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31892

Andrew Pinski pinskia at gcc dot gnu.org changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2012-02-01
Summary|optimization: Loop not  |optimization: Loop not
   |optimized away  |optimized away because of
   ||static
 Ever Confirmed|0   |1

--- Comment #1 from Andrew Pinski pinskia at gcc dot gnu.org 2012-02-01 
20:17:47 UTC ---
Confirmed, the issue is the fortran front-end promotes A to being static. 
Maybe we should just add code to the middle-end that does that.