[flang][openacc] Keep region when applying data operand conversion
authorValentin Clement <clementval@gmail.com>
Wed, 12 Apr 2023 15:19:11 +0000 (08:19 -0700)
committerValentin Clement <clementval@gmail.com>
Wed, 12 Apr 2023 15:20:34 +0000 (08:20 -0700)
commit49a813b4a6ea98e64373a7f7e8827a7e71e19189
tree24e11b2704c9fe59aa860ab1b1f2f64fc1377288
parent76e4070843308ea5774929a2ac57aa22d580c674
[flang][openacc] Keep region when applying data operand conversion

Similar to D148039 but for the FIR to LLVM IR
conversion pass.

The inner part of the acc.loop has been removed since the rest of the
pipeline is not ready and would raise an error here. This was passing
until now because the acc.loop was discarded completely.

Reviewed By: PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D148057
flang/lib/Optimizer/Transforms/OpenACC/OpenACCDataOperandConversion.cpp
flang/test/Transforms/OpenACC/convert-data-operands-to-llvmir.fir