Hi, you need to run some optimization passes first. (like -O2)<br><br><div class="gmail_quote">2011/5/3 Manish Gupta <span dir="ltr"><<a href="mailto:mgupta.iitr@gmail.com">mgupta.iitr@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I just want to try loop-unroll and see corresponding changes in the bitcode file. For that any loop will do. Have you been able to test llvm loop-unroll successfully? <div><div></div><div class="h5"><br><br><div class="gmail_quote">
On Mon, May 2, 2011 at 10:04 PM, Yuan Pengfei <span dir="ltr"><<a href="mailto:coolypf@qq.com" target="_blank">coolypf@qq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div><br>
> The loop that I am trying it on is:<br>
> for(i=0; i< 1000; i++)<br>
> {<br>
> c[i] = a[i] + b[i];<br>
> }<br>
<br>
</div>I can't find any benefit unrolling this loop.<br>
<br>
------------------<br>
<font color="#888888">Yuan Pengfei<br>
Peking Unversity, China</font></blockquote></div><br>
</div></div><br>_______________________________________________<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" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Best regards,<br>Kuan-Hsu<br><br><br>