[PATCH] D43915: [NVPTX] Lower loads from global constants using ld.global.nc (aka LDG).

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


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

After https://reviews.llvm.org/D43914, loads from global variables in addrspace(1) happen with
ld.global.  But since they're constants, even better would be to use
ld.global.nc, aka ldg.


https://reviews.llvm.org/D43915

Files:
  llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
  llvm/test/CodeGen/NVPTX/read-global-variable-constant.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43915.136413.patch
Type: text/x-patch
Size: 4183 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180228/a338ca91/attachment.bin>


More information about the llvm-commits mailing list