[PATCH] D71475: [WIP][OPENMP] Try to fix linear clause crash by emitting alloca for step
Johannes Doerfert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 16 17:03:13 PST 2019
jdoerfert added a comment.
In D71475#1784312 <https://reviews.llvm.org/D71475#1784312>, @cchen wrote:
> In D71475#1784284 <https://reviews.llvm.org/D71475#1784284>, @jdoerfert wrote:
>
> > What is the output when you run the example with `k` in `lastprivate` or `reduction`?
>
>
> I actually got the same result (return value) changing from firstprivate to lastprivate. Not so sure how to make linear work with reduction.
I don't want it to "work" but I thought we should give a proper error message. Can you add test cases where a value is used in the step *and* in a (1) shared, (2) private, (3) firstprivate, ...?
Other than that I think the code changes look pretty good.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71475/new/
https://reviews.llvm.org/D71475
More information about the cfe-commits
mailing list