This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/36281] New: vectorized code not parallelized
- From: "spop 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:25:52 -0000
- Subject: [Bug tree-optimization/36281] New: vectorized code not parallelized
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The testcase of PR36181 should be parallelized after being vectorized.
/* { dg-do compile } */
/* { dg-options "-O3 -ftree-parallelize-loops=2" } */
int foo ()
{
int i, sum = 0, data[1024];
for(i = 0; i<1024; i++)
sum += data[i];
return sum;
}
The fix for PR36181 was to disable the parallelization of a loop when
one of the phi nodes had a vector type. This testcase should also be
parallelized. See also the comments from the fix for PR36181:
http://gcc.gnu.org/ml/gcc-patches/2008-05/msg01217.html
--
Summary: vectorized code not parallelized
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: spop at gcc dot gnu dot org
ReportedBy: spop at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36281