[PATCH] D81192: [OPENMP]Fix PR45854: prevent code movement out of the critical region.
Johannes Doerfert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 4 15:30:24 PDT 2020
jdoerfert added a comment.
In D81192#2074762 <https://reviews.llvm.org/D81192#2074762>, @ABataev wrote:
> In D81192#2074732 <https://reviews.llvm.org/D81192#2074732>, @jdoerfert wrote:
>
> > I doubt this is the right fix. I'll take a closer look.
>
>
> I believe, the issue is caused by the new attributes for kmpc_critical/kmpc_end_critical functions. They are marked as `InaccessibleMemOrArgMemOnly` functions. Previously they did not have this attribute and optimizer did not move the code across these function calls.
I would argue it is exposed not caused by the attribute ;)
See PR46210
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81192/new/
https://reviews.llvm.org/D81192
More information about the cfe-commits
mailing list