]> granicus.if.org Git - clang/commit
[OPENMP] Fix generation of the unique names for task reduction
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 6 Mar 2018 18:59:43 +0000 (18:59 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 6 Mar 2018 18:59:43 +0000 (18:59 +0000)
commit860fc25e85a105ef1fa9de717bb974231fab80ba
tree6061bd39418a21fb8e3bdcbe137f5433a2cff97a
parent5f97f24294a46877795d69580bb5ac560c9b1f9e
[OPENMP] Fix generation of the unique names for task reduction
variables.

If the task has reduction construct and this construct for some variable
requires unique threadprivate storage, we may generate different names
for variables used in taskgroup task_reduction clause and in task
  in_reduction clause. Patch fixes this problem.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326827 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGOpenMPRuntime.h
test/OpenMP/taskgroup_task_reduction_codegen.cpp