[flang-commits] [flang] [flang][OpenMP] Enable lastprivate on simd (PR #93786)
Leandro Lupori via flang-commits
flang-commits at lists.llvm.org
Mon Jun 3 02:31:05 PDT 2024
================
@@ -199,12 +199,12 @@ void DataSharingProcessor::insertLastPrivateCompare(mlir::Operation *op) {
for (const omp::Clause &clause : clauses) {
if (clause.id != llvm::omp::OMPC_lastprivate)
continue;
- // TODO: Add lastprivate support for simd construct
- if (mlir::isa<mlir::omp::WsloopOp>(op)) {
+ if (mlir::isa<mlir::omp::WsloopOp>(op) or
----------------
luporl wrote:
```suggestion
if (mlir::isa<mlir::omp::WsloopOp>(op) ||
```
https://github.com/llvm/llvm-project/pull/93786
More information about the flang-commits
mailing list