[llvm-commits] [PATCH] Address Space Alias Analysis

Justin Holewinski justin.holewinski at gmail.com
Tue Oct 11 08:08:46 PDT 2011


The attached patch provides a new alias analysis: Address Space Alias
Analysis.  This pass is off-by-default and has no impact on generated code
unless -asaa is provided to opt.

This analysis signals NoAlias for pointers in different address spaces.  The
primary target for this pass is GPU back-ends which use LLVM address spaces
as a means for differentiating memory types (on-chip shared, off-chip
global, etc.) and hence pointers in different address spaces cannot alias.
 For OpenCL code compiled with the PTX back-end, this improves performance
by over 2x in some of my test kernels due to LLVM using this alias
information to remove redundant loads.

Is this okay to commit?

-- 

Thanks,

Justin Holewinski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111011/d7d96a38/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-core_300.patch
Type: text/x-patch
Size: 7695 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20111011/d7d96a38/attachment.bin>


More information about the llvm-commits mailing list