This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/36281] vectorized code not parallelized



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-05-20 19:42 -------
Even worse:
#define vector __attribute__((vector_size(16) ))
vector int foo ()
{
  vector int i, sum = 0, data[1024];

  for(i = 0; i<1024; i++)
    sum += data[i];

  return sum;
}

With -O2 -ftree-parallelize-loops=2, this does not get parallelized at all even
though we did not run the vectorizer.


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]