This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/54977] New: example3 not vectorized
- From: "wbrana at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 18 Oct 2012 17:19:23 +0000
- Subject: [Bug tree-optimization/54977] New: example3 not vectorized
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54977
Bug #: 54977
Summary: example3 not vectorized
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: wbrana@gmail.com
I tried to compile example3 from
http://gcc.gnu.org/projects/tree-ssa/vectorization.html
typedef int aint __attribute__ ((__aligned__(16)));
void foo (int n, aint * __restrict__ p, aint * __restrict q) {
/* feature: support for (aligned) pointer accesses. */
while (n--){
*p++ = *q++;
}
}
with g++ -O3 -ftree-vectorizer-verbose=2 -fPIC -shared 1.cpp -o 1.so
Analyzing loop at 1.cpp:5
5: not vectorized: no vectype for stmt: D.2238_9 = *q_21;
scalar_type: aint
1.cpp:2: note: vectorized 0 loops in function.