summaryrefslogtreecommitdiff
path: root/flang
diff options
context:
space:
mode:
authorValentin Clement <clementval@gmail.com>2023-05-10 08:32:55 -0700
committerValentin Clement <clementval@gmail.com>2023-05-10 08:34:25 -0700
commit3484745a5f41c9282712c575229a92b658b23dd1 (patch)
tree77f4189c9338b7c8916e732de91d3a4d539c6a7f /flang
parentb60e49165ee10d11eacfdce9bf9c59d132d95e25 (diff)
downloadllvm-3484745a5f41c9282712c575229a92b658b23dd1.tar.gz
[mlir][openacc] Cleanup acc.serial from old data clause operands
Remove old clause operands from acc.serial operation since the new dataOperands is now in place. private and firstprivate will receive some redesign but are not part of the new dataOperands. Depends on D150207 Reviewed By: vzakhari Differential Revision: https://reviews.llvm.org/D150224
Diffstat (limited to 'flang')
-rw-r--r--flang/lib/Lower/OpenACC.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/flang/lib/Lower/OpenACC.cpp b/flang/lib/Lower/OpenACC.cpp
index 0980e1c6181b..1fc1c0bc825c 100644
--- a/flang/lib/Lower/OpenACC.cpp
+++ b/flang/lib/Lower/OpenACC.cpp
@@ -999,7 +999,7 @@ createComputeOp(Fortran::lower::AbstractConverter &converter,
addOperand(operands, operandSegments, selfCond);
if constexpr (!std::is_same_v<Op, mlir::acc::KernelsOp>)
addOperands(operands, operandSegments, reductionOperands);
- if constexpr (!std::is_same_v<Op, mlir::acc::ParallelOp>)
+ if constexpr (std::is_same_v<Op, mlir::acc::KernelsOp>)
operandSegments.append({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0});
if constexpr (!std::is_same_v<Op, mlir::acc::KernelsOp>) {
addOperands(operands, operandSegments, privateOperands);