<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi Anadi, <div><br></div><div>In the file PassManagerBuilder.cpp you can change the lines below to get rid of the O3 restriction.   </div><div><br></div><div><div>189   if (LoopVectorize && OptLevel > 2)</div><div>190     MPM.add(createLoopVectorizePass());</div><div> </div></div><div>Nadav</div><div><br></div><div><br></div><div><br></div><div><br><div><div>On Apr 10, 2013, at 5:39 PM, Anadi Mishra <<a href="mailto:reachanadi@gmail.com">reachanadi@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr">Hello,<div><br></div><div>I am trying out the LoopVectorizer(LV) pass and would like to decouple it from O3 which is currently required to run LV. I want to do this because I want to understand the behaviour of LV by trying simple loops but the O3 mostly optimises away the loop body.</div><div><br></div><div>Any ideas would be appreciated.</div><div><br clear="all"><div>Best,<br>Anadi.<br></div></div></div>_______________________________________________<br>LLVM Developers mailing list<br><a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a><span class="Apple-converted-space"> </span>        <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></div></blockquote></div><br></div></body></html>