[PATCH] D109995: [OpenMP] Add NoSync attributes to alloc / free shared RTL calls
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 17 12:35:18 PDT 2021
jdoerfert accepted this revision.
jdoerfert added a comment.
This revision is now accepted and ready to land.
> This patch adds the nosync attribute to the __kmpc_alloc_shared and
> __kmpc_free_shared runtime library calls. This allows code analysis to
> know that these functins dont contain any barriers. This will help
> optimizations reason about the CFG of blocks containing these calls.
Technically they do contain synchronization events but neither the user nor we use them to synchronize
things not inside the functions. So, from the outside perspective they are `nosync`.
LG
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D109995/new/
https://reviews.llvm.org/D109995
More information about the llvm-commits
mailing list