<div class="gmail_quote">On Tue, Oct 11, 2011 at 6:34 PM, Sandeep Patel <span dir="ltr"><<a href="mailto:deeppatel1987@gmail.com">deeppatel1987@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
It seems like we could turn this on automatically if we ever see a use<br>
of a non-default address space.<br></blockquote><div><br></div><div>I hesitate to do this since some back-ends may not have the property that separate address spaces are entirely disjoint and cannot alias.  For PTX, we currently have this property because we use address spaces as a way to differentiate the different types of device memory.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
deep<br>
<div><div></div><div class="h5"><br>
On Tue, Oct 11, 2011 at 3:08 PM, Justin Holewinski<br>
<<a href="mailto:justin.holewinski@gmail.com">justin.holewinski@gmail.com</a>> wrote:<br>
> The attached patch provides a new alias analysis: Address Space Alias<br>
> Analysis.  This pass is off-by-default and has no impact on generated code<br>
> unless -asaa is provided to opt.<br>
> This analysis signals NoAlias for pointers in different address spaces.  The<br>
> primary target for this pass is GPU back-ends which use LLVM address spaces<br>
> as a means for differentiating memory types (on-chip shared, off-chip<br>
> global, etc.) and hence pointers in different address spaces cannot alias.<br>
>  For OpenCL code compiled with the PTX back-end, this improves performance<br>
> by over 2x in some of my test kernels due to LLVM using this alias<br>
> information to remove redundant loads.<br>
> Is this okay to commit?<br>
><br>
> --<br>
><br>
> Thanks,<br>
> Justin Holewinski<br>
><br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> llvm-commits mailing list<br>
> <a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
><br>
><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><br><div>Thanks,</div><div><br></div><div>Justin Holewinski</div><br>