[PATCH] D46147: [NVPTX] Added a feature to use short pointers for const/local/shared AS.

Artem Belevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 26 15:18:46 PDT 2018


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

Const/local/shared address spaces are all < 4GB and we can always use
32-bit pointers to access them. This has substantial performance impact
on kernels that uses shared memory for intermediary results.

The feature is disabled by default.


https://reviews.llvm.org/D46147

Files:
  llvm/lib/Target/NVPTX/NVPTX.td
  llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
  llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
  llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
  llvm/lib/Target/NVPTX/NVPTXIntrinsics.td
  llvm/lib/Target/NVPTX/NVPTXSubtarget.h
  llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
  llvm/test/CodeGen/NVPTX/addrspacecast.ll
  llvm/test/CodeGen/NVPTX/ld-addrspace.ll
  llvm/test/CodeGen/NVPTX/st-addrspace.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46147.144215.patch
Type: text/x-patch
Size: 39129 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180426/3fc8765a/attachment.bin>


More information about the llvm-commits mailing list