[PATCH] D39026: [NVPTX] allow address space inference for volatile loads/stores.

Artem Belevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 17 17:25:10 PDT 2017


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

If particular target supports volatile memory access operations, we can
avoid casting to generic AS. Currently it's only enabled in NVPTX for
loads and stores that access global & shared AS.

This improves performance in situations when we need to exchange data via shared memory 
and need to preserve memory access order using 'volatile'.


https://reviews.llvm.org/D39026

Files:
  llvm/include/llvm/Analysis/TargetTransformInfo.h
  llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
  llvm/lib/Analysis/TargetTransformInfo.cpp
  llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.h
  llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
  llvm/test/CodeGen/NVPTX/ld-st-addrrspace.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39026.119407.patch
Type: text/x-patch
Size: 10002 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171018/0e1a47f0/attachment.bin>


More information about the llvm-commits mailing list