Andrew,<br><br>  Thanks. Unfortunately, the runtime won't really work for what I'm doing but it seems that I can statically unroll just fine for the most part.<br><br>Thanks.<br><br><div class="gmail_quote">On Wed, Feb 1, 2012 at 8:38 AM, Andrew Trick <span dir="ltr"><<a href="mailto:atrick@apple.com">atrick@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
<br>
On Jan 31, 2012, at 5:16 PM, Ryan Taylor <<a href="mailto:ryta1203@gmail.com">ryta1203@gmail.com</a>> wrote:<br>
<br>
</div><div class="im">> Is it possible to unroll a loop (forcibly if necessary) with llvm (possibly the -loop-unroll pass) a constant number of times.<br>
><br>
> I believe that I read that the -unroll-count=x option was removed, correct? So is there some other way to do this or is this just not possible in llvm?<br>
<br>
</div>See clang -mllvm -help-hidden. If that doesn't work, llc -help-hidden.<br>
<br>
Probably want something like -mllvm -unroll-runtime -mllvm -unroll-count=N.<br>
<br>
As with any experimental options, look at the source, and -mllvm -debug-only=loop-unroll output to understand what it's doing.<br>
<br>
Andy<br>
</blockquote></div><br>