[PATCH] D102824: [OpenMP] Internalize functions in OpenMPOpt to improve IPO passes

Joseph Huber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 21 12:15:31 PDT 2021


jhuber6 updated this revision to Diff 347099.
jhuber6 added a comment.

Fixing a bug where an internalized function could have multiple metadata nodes attached. Adding a flag to Attributor to prevent function signature rewrites preventing the `__kmpc_alloc_shared` calls from being found in OpenMPOpt. Adding methods to only run OpenMPOpt Module pass on the internalized versions of functions if one exists.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102824/new/

https://reviews.llvm.org/D102824

Files:
  llvm/include/llvm/Transforms/IPO/Attributor.h
  llvm/lib/Transforms/IPO/Attributor.cpp
  llvm/lib/Transforms/IPO/OpenMPOpt.cpp
  llvm/test/Transforms/OpenMP/replace_globalization.ll
  llvm/test/Transforms/OpenMP/single_threaded_execution.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102824.347099.patch
Type: text/x-patch
Size: 9957 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210521/c472509c/attachment.bin>


More information about the llvm-commits mailing list