[PATCH] D134689: [OpenMP][Attributor] Move allocas converted from __kmpc_alloc_shared to entry block

Gheorghe-Teodor Bercea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 26 18:57:36 PDT 2022


doru1004 created this revision.
doru1004 added reviewers: jdoerfert, carlo.bertolli, ronl.
doru1004 added a project: OpenMP.
Herald added subscribers: ormris, okura, kuter, guansong, hiraditya, yaxunl.
Herald added a reviewer: homerdin.
Herald added a project: All.
doru1004 requested review of this revision.
Herald added a reviewer: sstefan1.
Herald added subscribers: llvm-commits, sstefan1.
Herald added a project: LLVM.

Move allocas converted from __kmpc_alloc_shared to entry block. This patch fixes an issue that occurs when inlined functions lead to conversions to allocs from __kmpc_alloc_shared calls to not be moved to the entry block of the function hence failing to be passed as arguments to other non-inlined functions.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D134689

Files:
  llvm/lib/Transforms/IPO/AttributorAttributes.cpp
  llvm/test/Transforms/OpenMP/remove_globalization.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134689.463071.patch
Type: text/x-patch
Size: 6070 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220927/182af238/attachment.bin>


More information about the llvm-commits mailing list