[all-commits] [llvm/llvm-project] 4a5169: [Flang][OpenACC] Fix for branching out issue in Op...
sameeranjoshi via All-commits
all-commits at lists.llvm.org
Mon Oct 19 09:17:17 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 4a51691a85a1c048b9028d409b744a6235c55933
https://github.com/llvm/llvm-project/commit/4a51691a85a1c048b9028d409b744a6235c55933
Author: sameeran joshi <sameeranjayant.joshi at amd.com>
Date: 2020-10-19 (Mon, 19 Oct 2020)
Changed paths:
M flang/include/flang/Semantics/tools.h
M flang/lib/Semantics/check-acc-structure.cpp
M flang/lib/Semantics/check-do-forall.cpp
M flang/lib/Semantics/tools.cpp
M flang/test/Semantics/acc-branch.f90
Log Message:
-----------
[Flang][OpenACC] Fix for branching out issue in OpenACC parallel construct.
From OpenACC 3.0 Standards document
840 • A program may not branch into or out of an OpenACC parallel construct.
Exits are allowed provided it does not cause an exit outside the parallel region.
Test case exits out of the inner do loop, but it is still inside the parallel region.
Patch tries to extract labels from block attached to a construct,
If the exit is to a label not in the collected list then flags an error.
Reviewed By: tskeith
Differential Revision: https://reviews.llvm.org/D87906
More information about the All-commits
mailing list