[OPENMP]Do no privatize const firstprivates in target regions.
authorAlexey Bataev <a.bataev@outlook.com>
Thu, 8 Jul 2021 17:58:10 +0000 (10:58 -0700)
committerAlexey Bataev <a.bataev@outlook.com>
Thu, 8 Jul 2021 18:55:37 +0000 (11:55 -0700)
commitf57d396dcab2a280faa72aff68623a8ccfdc5421
treec34117cbcb7ac50c41656d300498bff2d9cbe676
parent0d74fd3fdf5013e72c9c1682a284b8de7973a805
[OPENMP]Do no privatize const firstprivates in target regions.

No need to emit private copyfor firstprivate constants in target
regions, we can use the original copy instead.

Differential Revision: https://reviews.llvm.org/D105647
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/test/OpenMP/nvptx_target_firstprivate_codegen.cpp
clang/test/OpenMP/target_firstprivate_codegen.cpp