[OPENMP]PR53344: Emit code for final update of the inscan reduction vars in workshari...
authorAlexey Bataev <a.bataev@outlook.com>
Mon, 7 Mar 2022 21:11:12 +0000 (13:11 -0800)
committerAlexey Bataev <a.bataev@outlook.com>
Thu, 28 Apr 2022 17:41:28 +0000 (10:41 -0700)
commit1462e63f67a965defec035c3bc17a5ddeb366964
treeece1123eeb9ea12770b5e3e4b84dd52721abd694
parent17f3a92ee5d5490e84cc81481b0947f6a9be3106
[OPENMP]PR53344: Emit code for final update of the inscan reduction vars in worksharing loops.

Need to emit final update of the inscan reduction variables. For
worksharing loops, the reduction values are stored in the temp array,
need to copy the last element to the original var at the end of the
construct.

Differential Revision: https://reviews.llvm.org/D121156
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/test/OpenMP/parallel_for_scan_codegen.cpp