summaryrefslogtreecommitdiff
path: root/test/Feature
diff options
context:
space:
mode:
authorJustin Lebar <jlebar@google.com>2016-02-06 19:32:44 +0000
committerJustin Lebar <jlebar@google.com>2016-02-06 19:32:44 +0000
commitd98b8105e7f572c8ebebb54f594dc88d2aea2b27 (patch)
tree0be7425a1ce51a996a1661aa79d4ea9a0f5aa2fa /test/Feature
parentd14beda7f7175e2ecbe785c0153c005bfa37328c (diff)
[NVPTX] Mark nvvm synchronizing intrinsics as convergent.
Summary: This is the attribute purpose-made for e.g. __syncthreads. It appears that NoDuplicate may not be sufficient to prevent Sink from touching a call to __syncthreads. Reviewers: jingyue, hfinkel Subscribers: llvm-commits, jholewinski, jhen, rnk, tra, majnemer Differential Revision: http://reviews.llvm.org/D16941 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature')
-rw-r--r--test/Feature/intrinsic-noduplicate.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Feature/intrinsic-noduplicate.ll b/test/Feature/intrinsic-noduplicate.ll
index 9a2b0aba5bd..1ffe6ac563c 100644
--- a/test/Feature/intrinsic-noduplicate.ll
+++ b/test/Feature/intrinsic-noduplicate.ll
@@ -1,9 +1,9 @@
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
-; Make sure LLVM knows about the noduplicate attribute on the
+; Make sure LLVM knows about the convergent and noduplicate attributes on the
; llvm.cuda.syncthreads intrinsic.
declare void @llvm.cuda.syncthreads()
; CHECK: declare void @llvm.cuda.syncthreads() #[[ATTRNUM:[0-9]+]]
-; CHECK: attributes #[[ATTRNUM]] = { noduplicate nounwind }
+; CHECK: attributes #[[ATTRNUM]] = { convergent noduplicate nounwind }