[llvm] r272295 - [NVPTX] Mark bar.sync intrinsic as convergent.
Justin Lebar via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 9 12:49:26 PDT 2016
Author: jlebar
Date: Thu Jun 9 14:49:26 2016
New Revision: 272295
URL: http://llvm.org/viewvc/llvm-project?rev=272295&view=rev
Log:
[NVPTX] Mark bar.sync intrinsic as convergent.
Summary:
__syncthreads, which corresponds to bar.sync 0, is already convergent.
This makes the more general bar.sync n likewise convergent.
Reviewers: tra
Subscribers: llvm-commits, jholewinski
Differential Revision: http://reviews.llvm.org/D21161
Modified:
llvm/trunk/include/llvm/IR/IntrinsicsNVVM.td
Modified: llvm/trunk/include/llvm/IR/IntrinsicsNVVM.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/IntrinsicsNVVM.td?rev=272295&r1=272294&r2=272295&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/IntrinsicsNVVM.td (original)
+++ llvm/trunk/include/llvm/IR/IntrinsicsNVVM.td Thu Jun 9 14:49:26 2016
@@ -3744,5 +3744,5 @@ def int_ptx_read_pm2 : PTXReadSp
def int_ptx_read_pm3 : PTXReadSpecialRegisterIntrinsic_r32
<"__builtin_ptx_read_pm3">;
-def int_ptx_bar_sync : Intrinsic<[], [llvm_i32_ty], []>,
+def int_ptx_bar_sync : Intrinsic<[], [llvm_i32_ty], [IntrConvergent]>,
GCCBuiltin<"__builtin_ptx_bar_sync">;
More information about the llvm-commits
mailing list