This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/36281] vectorized code not parallelized
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 May 2008 19:42:00 -0000
- Subject: [Bug tree-optimization/36281] vectorized code not parallelized
- References: <bug-36281-7780@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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