[PATCH] D98469: [NVPTX] Avoid temp copy of byval kernel parameters.
Artem Belevich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 11 16:31:54 PST 2021
tra created this revision.
tra added reviewers: jlebar, asbirlea.
Herald added subscribers: bixia, hiraditya, jholewinski.
tra requested review of this revision.
Herald added a project: LLVM.
Avoid making a temporary copy of byval argument if all accesses are loads and therefore the pointer to the parameter can not escape.
This avoids excessive global memory accesses when each kernel makes its own copy.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D98469
Files:
llvm/lib/Target/NVPTX/NVPTXLowerArgs.cpp
llvm/test/CodeGen/NVPTX/lower-byval-args.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98469.330102.patch
Type: text/x-patch
Size: 8015 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210312/4e7cc0c6/attachment.bin>
More information about the llvm-commits
mailing list