]> granicus.if.org Git - clang/commit
[OPENMP] Fix the address of the original variable in task reductions.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 9 Mar 2018 15:20:30 +0000 (15:20 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 9 Mar 2018 15:20:30 +0000 (15:20 +0000)
commit9d5411b8c1483aef35fe908b9cbe17e8d91082e0
treec1b9a3f8170329c4ac75e2cc8e48b8d222ecf1b4
parentd218b6d94529e6f50bda93d0778fc835b9d92895
[OPENMP] Fix the address of the original variable in task reductions.

If initialization of the task reductions requires pointer to original
variable, which is stored in the threadprivate storage, we used the
address of this pointer instead.

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