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/54977] New: example3 not vectorized


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.


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