]> granicus.if.org Git - clang/commit
[OPENMP][NVPTX]Reduce memory use for globalized vars in
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 11 Oct 2018 18:30:31 +0000 (18:30 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 11 Oct 2018 18:30:31 +0000 (18:30 +0000)
commitc0a2732d30f9ffb73b9b449f2c1d4c858f153dfe
tree86bc902fdc5397fb2d7fac5846682b4ed6e4a6cb
parentfbda75de8597dd5beb1b3a6eedddceab13c432aa
[OPENMP][NVPTX]Reduce memory use for globalized vars in
target/teams/distribute regions.

Previously introduced globalization scheme that uses memory coalescing
scheme may increase memory usage fr the variables that are devlared in
target/teams/distribute contexts. We don't need 32 copies of such
variables, just 1. Patch reduces memory use in this case.

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