[PATCH] D100187: [OPENMP]Fix PR49115: Incorrect results for scan directive.

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 9 06:05:30 PDT 2021


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

For combined worksharing directives need to emit the temp arrays outside
of the parallel region and update them in the master thread only.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D100187

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100187.336423.patch
Type: text/x-patch
Size: 27273 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210409/8ee40954/attachment-0001.bin>


More information about the cfe-commits mailing list