]> granicus.if.org Git - clang/commit
[OPENMP, NVPTX] Reduce the number of the globalized variables.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 26 Jun 2018 17:24:03 +0000 (17:24 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 26 Jun 2018 17:24:03 +0000 (17:24 +0000)
commitad2ab0a634a255ca5207eb64f2791aa1a07553bd
treeba58e69c3e5ad28e1bb6376e63f0c8e901ccd2ab
parent52b5428f4ed70327143838764094db3fdc699a2e
[OPENMP, NVPTX] Reduce the number of the globalized variables.

Patch tries to make better analysis of the variables that should be
globalized. From now, instead of all parallel directives it will check
only distribute parallel .. directives and check only for
firstprivte/lastprivate variables if they must be globalized.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335632 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
test/OpenMP/nvptx_distribute_parallel_generic_mode_codegen.cpp [new file with mode: 0644]