[flang-commits] [flang] [flang][OpenMP] Add `private` to `allocate` in parallel-sections.f90 (PR #92185)
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Tue May 14 15:40:20 PDT 2024
================
@@ -40,12 +40,8 @@ subroutine omp_parallel_sections_allocate(x, y)
use omp_lib
integer, intent(inout) :: x, y
!CHECK: %[[allocator_1:.*]] = arith.constant 4 : i64
- !CHECK: %[[allocator_2:.*]] = arith.constant 4 : i64
- !CHECK: omp.parallel allocate(
- !CHECK: %[[allocator_2]] : i64 -> %{{.*}} : !fir.ref<i32>) {
- !CHECK: omp.sections allocate(
- !CHECK: %[[allocator_1]] : i64 -> %{{.*}} : !fir.ref<i32>) {
- !$omp parallel sections allocate(omp_high_bw_mem_alloc: x)
+ !CHECK: omp.sections allocate(%[[allocator_1]] : i64 -> %{{.*}} : !fir.ref<i32>) {
+ !$omp parallel sections allocate(omp_high_bw_mem_alloc: x) private(x, y)
----------------
kparzysz wrote:
Added.
https://github.com/llvm/llvm-project/pull/92185
More information about the flang-commits
mailing list