]> granicus.if.org Git - clang/commit
[OPENMP][NVPTX]Fix critical region codegen.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 26 Aug 2019 19:07:48 +0000 (19:07 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 26 Aug 2019 19:07:48 +0000 (19:07 +0000)
commit912b005b3b8643d39e685746ab3c57b3e191d443
treebc61dd2e1902473e7af7e1765d11da6087f8957d
parentd47013537d8b98c5c5f22c0fef99f7a78431b4d8
[OPENMP][NVPTX]Fix critical region codegen.

Summary:
Previously critical regions were emitted with the barrier making it a
worksharing construct though it is not. Also, it leads to incorrect
behavior in Cuda9+. Patch fixes this problem.

Reviewers: ABataev, jdoerfert

Subscribers: jholewinski, guansong, cfe-commits, grokos

Tags: #clang

Differential Revision: https://reviews.llvm.org/D66673

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@369946 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
test/OpenMP/nvptx_parallel_codegen.cpp