]> granicus.if.org Git - clang/commit
[OPENMP] Fixed codegen for lastprivate LCV in worksharing constructs.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 21 May 2015 07:59:51 +0000 (07:59 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 21 May 2015 07:59:51 +0000 (07:59 +0000)
commit5f55bfbbced0e0c24c67a29d6fb331023eee292a
tree5d7c695c872c8287a6005bd4450bc5bc73a8da12
parent2895be058a34f32bd85623c76d96790540ccd39a
[OPENMP] Fixed codegen for lastprivate LCV in worksharing constructs.

If loop control variable in a worksharing construct is marked as lastprivate, we should copy last calculated value of private counter back to original variable.

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