RE: O2 optimization with vectorize

2012-04-11 Thread Ulrich Weigand
"Singh, Ravi Kumar (Ravi)" wrote on 11.04.2012 17:50:53: > If I disable extra transformations as suggested by you my cycles > increase to 38xx in comparison to -O2 25xx Sorry, I misremembered the flag spelling. It should read: -ftree-vectorize -fno-tree-loop-if-convert --param max-stores-to

RE: O2 optimization with vectorize

2012-04-11 Thread Singh, Ravi Kumar (Ravi)
-toolchain@lists.linaro.org Subject: Re: O2 optimization with vectorize "Singh, Ravi Kumar (Ravi)" wrote: > None of the generated code contains the NEON instructions. Code > generated with case 1 is taking 3000 cycles, and code generated by > option 2 is taking 2500

Re: O2 optimization with vectorize

2012-04-11 Thread Ulrich Weigand
"Singh, Ravi Kumar (Ravi)" wrote: > None of the generated code contains the NEON instructions. Code > generated with case 1 is taking 3000 cycles, and code generated by > option 2 is taking 2500 cycles. > > Even if vectorization failed in case1, it should not generate more > inefficient code than

O2 optimization with vectorize

2012-04-11 Thread Singh, Ravi Kumar (Ravi)
All, In the below code, I tried few compiler options and got following observations: 1) arm-linux-gnueabi-gcc -O2 -mcpu=cortex-a15 -mfpu=neon -ftree-vectorizer-verbose=6 -ftree-vectorize Compiler throws following info messages: foo.c:16: note: not vectorized: unsupported use in stmt