[all-commits] [llvm/llvm-project] 460c2e: [Flang][OpenMP] Restrict check to worksharing cons...
kiranchandramohan via All-commits
all-commits at lists.llvm.org
Thu Mar 9 06:13:38 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 460c2eaa4ad5dd2b19339d65affa25b00782dcb0
https://github.com/llvm/llvm-project/commit/460c2eaa4ad5dd2b19339d65affa25b00782dcb0
Author: Kiran Chandramohan <kiran.chandramohan at arm.com>
Date: 2023-03-09 (Thu, 09 Mar 2023)
Changed paths:
M flang/lib/Semantics/check-omp-structure.cpp
M flang/lib/Semantics/check-omp-structure.h
M flang/test/Semantics/OpenMP/reduction07.f90
Log Message:
-----------
[Flang][OpenMP] Restrict check to worksharing construct reductions
The outer context private check for reduction variables was firing
for all constructs. This check is not applicable to non-worksharing
constructs.
OpenMP 5.2: Section 5.5.8
A list item that appears in a reduction clause on a worksharing construct
must be shared in the parallel region to which a correspodning worksharing
region binds.
Reviewed By: peixin
Differential Revision: https://reviews.llvm.org/D144824
More information about the All-commits
mailing list