Yeah. Is there a way to specify noalias between these arguments?<br><br><div class="gmail_quote">On Fri, Sep 21, 2012 at 2:46 PM, Krzysztof Parzyszek <span dir="ltr"><<a href="mailto:kparzysz@codeaurora.org" target="_blank">kparzysz@codeaurora.org</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">On 9/21/2012 4:35 PM, Welson Sun wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear LLVM,<br>
<br>
I would like to understand how to improve the LLVM alias analysis<br>
accuracy. I am currently using llvmgcc 2.9 and llvm 3.0. Here is the C code:<br>
<br>
void foo(int a[SIZE], int b[SIZE], int c[SIZE])<br>
{<br>
   for(int i=0; i<SIZE; i++)<br>
     c[i] = a[i] + b[i];<br>
}<br>
</blockquote>
<br></div>
This is equivalent to<br>
void foo(int *a, int *b, int *c)<div class="im"><br>
{<br>
   for(int i=0; i<SIZE; i++)<br>
     c[i] = a[i] + b[i];<br>
}<br>
<br></div>
and so you can call this function with the same array for all parameters.<span class="HOEnZb"><font color="#888888"><br>
<br>
-K<br>
<br>
-- <br>
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation<br>
______________________________<u></u>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">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/<u></u>mailman/listinfo/llvmdev</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Welson<div><br></div><div>Phone: (408) 418-8385</div><div>Email:  <a href="mailto:welson.sun@gmail.com" target="_blank">welson.sun@gmail.com</a></div>
<div><br></div><br>