[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)
commit5e2879320d91f5094c562cd80f67e677798d0125
tree1ea332cc1e646e59ea030531fb2b4e8aad31b38f
parenteda370d4c819f37854458d8785693dbb04c8e67e
[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.

llvm-svn: 358503
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
clang/test/OpenMP/nvptx_SPMD_codegen.cpp