[Bug tree-optimization/56688] Fortran save statement prevents loop vectorization.

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 22 13:31:00 GMT 2013


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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> 2013-03-22 13:31:23 UTC ---
C testcase:

int x[1024], y[1024];
int z;
void foo (void)
{
  unsigned i;
  for (i = 0; i < 1024; ++i)
    {
      z = x[i] - y[i];
      x[i] = z;
    }
}



More information about the Gcc-bugs mailing list