<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Hi Matthieu, </div><div><br></div><div>Are you sure that it is the loop vectorizer and not the slp-vectorizer ?  Also, you probably want to run mem2reg at some point, unless you generate alloca-free IR. </div><div><br></div><div>Thanks,</div><div>Nadav</div><div><div><br></div><div>On Nov 5, 2013, at 9:39 AM, Matthieu Dubet <<a href="mailto:maattdd@gmail.com">maattdd@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div><div><div><div>Hi,<br><br>I have a simple LLVM code which loop over an array and do a simple calculation, the bytecode is here : <a href="https://gist.github.com/maattd/7322927">https://gist.github.com/maattd/7322927</a><br>

<br></div>This code is correctly vectorized with LLVM opt 3.3, however I can't get it to vectorize with call through the API.<br><br></div>Is there a way to debug the LLVM vectorizer pass with the API ? <br><br></div>

Is there a way to just apply the exact same optimization passes as the opt tool ? I've tried llvm::CodeGenOpt::Aggressive but it doesn't vectorize it neither.<br><br></div><div>Thanks,<br>Matthieu<br></div></div>

_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></blockquote></div><br></body></html>