summaryrefslogtreecommitdiff
path: root/flang
diff options
context:
space:
mode:
authorValentin Clement <clementval@gmail.com>2023-05-10 08:35:06 -0700
committerValentin Clement <clementval@gmail.com>2023-05-10 08:38:03 -0700
commit1e463942f4a3f38998f28c5d1749ece1047a391f (patch)
tree029b854b9f0b6f32f6261eaa3ce8a1e8e40ef53f /flang
parent3484745a5f41c9282712c575229a92b658b23dd1 (diff)
downloadllvm-1e463942f4a3f38998f28c5d1749ece1047a391f.tar.gz
[mlir][openacc] Cleanup acc.kernels from old data clause operands
Remove old clause operands from acc.kernels 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 D150224 Reviewed By: vzakhari Differential Revision: https://reviews.llvm.org/D150225
Diffstat (limited to 'flang')
-rw-r--r--flang/lib/Lower/OpenACC.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/flang/lib/Lower/OpenACC.cpp b/flang/lib/Lower/OpenACC.cpp
index 1fc1c0bc825c..fb6b71466021 100644
--- a/flang/lib/Lower/OpenACC.cpp
+++ b/flang/lib/Lower/OpenACC.cpp
@@ -997,11 +997,8 @@ createComputeOp(Fortran::lower::AbstractConverter &converter,
}
addOperand(operands, operandSegments, ifCond);
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::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, reductionOperands);
addOperands(operands, operandSegments, privateOperands);
addOperands(operands, operandSegments, firstprivateOperands);
}