[PATCH] D81192: [OPENMP]Fix PR45854: prevent code movement out of the critical region.

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 4 13:16:20 PDT 2020


ABataev created this revision.
ABataev added reviewers: jdoerfert, mikerice.
Herald added subscribers: llvm-commits, sstefan1, jfb, guansong, hiraditya, yaxunl.
Herald added projects: clang, LLVM.

Need to emit memory barriers upon enter/exit to/from critical region to
prevent code movement.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81192

Files:
  clang/lib/CodeGen/CGOpenMPRuntime.cpp
  clang/test/OpenMP/critical_codegen.cpp
  clang/test/OpenMP/openmp_win_codegen.cpp
  clang/test/OpenMP/simd_codegen.cpp
  llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
  llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81192.268568.patch
Type: text/x-patch
Size: 13453 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200604/1b581754/attachment-0001.bin>


More information about the cfe-commits mailing list