<div>Hi,</div>
<div>I am trying to turn on the new GCC auto-vectorization feature within llvmgcc4. Below is the command I used, but nothing was vectorized. Does it mean that llvmgcc4 has disabled this optimization and all I can do is to embed SSE intrinsics in the source code by hand?
</div>
<div> </div>
<div>Thanks!</div>
<div> </div>
<div>./llvm-gcc4-x86/bin/llvm-gcc -c -O2 -ftree-vectorize -msse -ftree-vectorizer-verbose=5 -emit-llvm vec.c -o vec.bc</div>
<div> </div>
<div>////////////////////vec.c/////////////////////////</div>
<div>int a[256], b[256], c[256];<br>foo () {<br>  int i;<br>  for (i=0; i<256; i++){<br>    a[i] = b[i] + c[i];<br>  }<br>}<br> </div>
<div> </div>