<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div>Hi Robert, </div><div><br></div><div>The best way is to push “-<span style="color: rgb(180, 38, 26); font-family: Menlo; font-size: 11px;">vectorize-loops=false</span>”. You can look at PassManagerBuilder.cpp in LLVM to see the flag. You can also run "clang -###” to see which flags the compiler driver passes. Setting the register number will only influence the unroll-factor of the vectorized code. You would also want to vectorize the SLP-vectorizer in a similar way. </div><div><br></div><div>Thanks,</div><div>Nadav</div><br><div><div>On Aug 23, 2013, at 10:30 AM, Robert Lytton <<a href="mailto:robert@xmos.com">robert@xmos.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div ocsi="0" fpstyle="1" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 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 style="direction: ltr; font-family: Tahoma; font-size: 10pt;">Hi<br><br>I would like to disable vectorization on the XCore target by default.<br><br>I assume I need to push_back -fno-vectorize in clang/lib/driver/Tools.cpp for Triple::xcore.<br><br>Should I also disable the pass in llvm explicitly?<br>I tried setting getNumberOfRegisters in XCoreTTI::TargetTransformInfo viz:<br><br> unsigned getNumberOfRegisters(bool Vector) const {<br> if (Vector) {<br> return 0;<br> }<br> return 12;<br> }<br><br>But this made no difference (I need to double check).<br><br>What is the correct way to disable vectorization passes?<br><br>Robert<br><br></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></body></html>