[PATCH] D121156: [OPENMP]PR53344: Emit code for final update of the inscan reduction vars in worksharing loops.

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 7 13:36:28 PST 2022


ABataev created this revision.
ABataev added reviewers: jdoerfert, mikerice.
Herald added subscribers: guansong, yaxunl.
Herald added a project: All.
ABataev requested review of this revision.
Herald added a subscriber: sstefan1.
Herald added a project: clang.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D121156

Files:
  clang/lib/CodeGen/CGStmtOpenMP.cpp
  clang/test/OpenMP/parallel_for_scan_codegen.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121156.413618.patch
Type: text/x-patch
Size: 7470 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220307/f2558860/attachment.bin>


More information about the cfe-commits mailing list