<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>