[PATCH] D39822: [NVPTX] Model (some) side effects of warp-synchronous data exchange intrinsics.
Artem Belevich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 8 16:18:15 PST 2017
tra created this revision.
Herald added subscribers: hiraditya, sanjoy, jholewinski.
Exchanging data across threads in a warp does not access memory, but has side effects (read/write other threads' state).
Previously the intrinsics were marked as IntrNoMem, which resulted in the ops CSI'ed away (PR35249).
This patch marks all such intrinsics as IntrInaccessibleMemOnly which prevents CSI.
https://reviews.llvm.org/D39822
Files:
llvm/include/llvm/IR/IntrinsicsNVVM.td
llvm/lib/Target/NVPTX/NVPTXISelDAGToDAG.cpp
llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39822.122174.patch
Type: text/x-patch
Size: 12819 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171109/44f1685c/attachment.bin>
More information about the llvm-commits
mailing list