[PATCH] Teach SROA about addrspacecast.

Jingyue Wu jingyue at google.com
Mon Jun 15 15:47:07 PDT 2015


+chandlerc

On Mon, Jun 15, 2015 at 3:45 PM, Jingyue Wu <jingyue at google.com> wrote:

> This patch is not in SROA yet. Do you mind I check it in?
>
> I was bitten by the same issue in the NVPTX backend. Code patterns such as
>
>   %0 = alloca i32
>   %1 = addrspacecast i32* %0 to addrspace(4) i32* ; cast from generic to
> local so that later accesses can be much faster
>   ... use %1 ...
>
> will appear quite often after NVPTXFavorNonGenericAddrSpaces (
> http://llvm.org/docs/doxygen/html/NVPTXTargetMachine_8cpp_source.html#l00169)
> with some WIP checked in. It would be great if SROA can nuke these allocas
> across addrspacecasts.
>
>
> http://reviews.llvm.org/D4501
>
> EMAIL PREFERENCES
>   http://reviews.llvm.org/settings/panel/emailpreferences/
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150615/78e86686/attachment.html>


More information about the llvm-commits mailing list