[Bug tree-optimization/39300] vectorizer confused by predictive commoning and PRE

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Feb 25 14:07:00 GMT 2009



------- Comment #3 from rguenth at gcc dot gnu dot org  2009-02-25 14:07 -------
Simpler C testcase:

float res[1024], data[1024];

void foo(void)
{
  int i;
  float tmp = data[0];
  for (i = 1; i < 1024; ++i)
    {
      float tmp2 = data[i];
      res[i] = tmp + tmp2;
      tmp = tmp2;
    }
}


-- 


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



More information about the Gcc-bugs mailing list