From 1e463942f4a3f38998f28c5d1749ece1047a391f Mon Sep 17 00:00:00 2001 From: Valentin Clement Date: Wed, 10 May 2023 08:35:06 -0700 Subject: [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 --- flang/lib/Lower/OpenACC.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'flang') 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) - addOperands(operands, operandSegments, reductionOperands); - if constexpr (std::is_same_v) - operandSegments.append({0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}); if constexpr (!std::is_same_v) { + addOperands(operands, operandSegments, reductionOperands); addOperands(operands, operandSegments, privateOperands); addOperands(operands, operandSegments, firstprivateOperands); } -- cgit v1.2.1