[PATCH] D90909: [OpenMPOpt] Expand parallel region merging

Giorgis Georgakoudis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 6 01:04:25 PST 2020


ggeorgakoudis created this revision.
Herald added subscribers: llvm-commits, guansong, hiraditya, yaxunl.
Herald added a project: LLVM.
ggeorgakoudis requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added a subscriber: sstefan1.

The existing implementation of parallel region merging applies only to
consecutive parallel regions that have speculatable sequential
instructions in-between. This patch lifts this limitation to expand
merging with any sequential instructions in-between, except calls to
unmergable OpenMP runtime functions. In-between sequential instructions
in the merged region are sequentialized in a "master" region and any
output values are broadcasted to the following parallel regions and the
sequential region continuation of the merged region.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D90909

Files:
  llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
  llvm/lib/Transforms/IPO/OpenMPOpt.cpp
  llvm/test/Transforms/OpenMP/parallel_region_merging.ll
  llvm/test/Transforms/OpenMP/parallel_region_merging_legacy_pm.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90909.303359.patch
Type: text/x-patch
Size: 438290 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201106/3534a19b/attachment-0001.bin>


More information about the llvm-commits mailing list