[PATCH] D43914: Use addrspacecast instead of target-specific intrinsics in NVPTXGenericToNVVM.

Justin Lebar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 28 15:01:35 PST 2018


jlebar created this revision.
jlebar added a reviewer: tra.
Herald added subscribers: hiraditya, sanjoy, jholewinski.

NVPTXGenericToNVVM was using target-specific intrinsics to do address
space casts.  Using the addrspacecast instruction is (a lot) simpler.
But it also has the advantage of being understandable to other passes.
In particular, InferAddrSpaces is able to understand these address space
casts and remove them in most cases.


https://reviews.llvm.org/D43914

Files:
  llvm/lib/Target/NVPTX/NVPTXGenericToNVVM.cpp
  llvm/test/CodeGen/NVPTX/access-non-generic.ll
  llvm/test/CodeGen/NVPTX/generic-to-nvvm-ir.ll
  llvm/test/CodeGen/NVPTX/generic-to-nvvm.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43914.136405.patch
Type: text/x-patch
Size: 6662 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180228/2d41da88/attachment.bin>


More information about the llvm-commits mailing list