]> granicus.if.org Git - clang/commit
[OPENMP][NVPTX]Run combined constructs with if clause in SPMD mode.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 16 Apr 2019 15:39:12 +0000 (15:39 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 16 Apr 2019 15:39:12 +0000 (15:39 +0000)
commit49e3eaedc344ee619c2895ce81ed70809f96b55c
tree28192b5d6ef5fa993818f633ed9dc31955cef7ed
parent2201cc83eb9f6c7f2deb6010ed19a7e216e28681
[OPENMP][NVPTX]Run combined constructs with if clause in SPMD mode.

Combined constructs with parallel and if clauses without modifiers may
be executed in SPMD mode since if the condition is true for the target
region, it is also true for parallel region and the threads must be run
in parallel.

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