[flang-commits] [flang] [flang][OpenMP][Lower] fix statement context cleanup insertion point (PR #133891)

via flang-commits flang-commits at lists.llvm.org
Mon Apr 7 04:38:44 PDT 2025


https://github.com/NimishMishra commented:

Thanks for the PR. I am okay with the approach: the corresponding `gen*` functions return the operation, set the insertion point to after the region of the operation, and emit the finalisation operation(s).

Can the following tests be extended to test the PR? There seems to be cleanup in these tests. 
1. flang/test/Lower/OpenMP/parallel-reduction3.f90
2. flang/test/Lower/OpenMP/wsloop-reduction-allocatable-array-minmax.f90

https://github.com/llvm/llvm-project/pull/133891


More information about the flang-commits mailing list