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: unassig...@gcc.gnu.org

        ReportedBy: wbr...@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.

Reply via email to