[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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 6662 bytes
Desc: not available
More information about the llvm-commits