[OPENMP, NVPTX] Emit simple reduction if requested.
authorAlexey Bataev <a.bataev@hotmail.com>
Mon, 18 Jun 2018 17:11:45 +0000 (17:11 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Mon, 18 Jun 2018 17:11:45 +0000 (17:11 +0000)
commit7b55d2d5542545755ffd99069c98d0dc36495b04
treef24a52d1e01a69b9b636abf225c4af46da3d736d
parenta88281d8ae3a6bb0c4da126910b9b30fe068ad55
[OPENMP, NVPTX] Emit simple reduction if requested.

If simple reduction is requested, use the simple reduction instead of
the runtime functions calls.

llvm-svn: 334962
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
clang/test/OpenMP/nvptx_target_simd_codegen.cpp