================ @@ -0,0 +1,45 @@ +! RUN: %flang_fc1 -emit-hlfir -fopenmp -fdo-concurrent-to-openmp=host %s -o - \ +! RUN: | FileCheck %s + +program main + implicit none + + call foo(10) + + contains + subroutine foo(n) + implicit none + integer :: n + integer :: i + integer, dimension(n) :: a + + do concurrent(i=1:n) + a(i) = i + end do + end subroutine + +end program main + +! CHECK: %[[N_DECL:.*]]:2 = hlfir.declare %{{.*}} dummy_scope %{{.*}} {uniq_name = "_QFFfooEn"} + +! CHECK: fir.load + +! CHECK: %[[LB:.*]] = fir.convert %{{c1_.*}} : (i32) -> index +! CHECK: %[[N_VAL:.*]] = fir.load %[[N_DECL]]#0 : !fir.ref<i32> +! CHECK: %[[UB:.*]] = fir.convert %[[N_VAL]] : (i32) -> index +! CHECK: %[[C1:.*]] = arith.constant 1 : index + +! CHECK: omp.parallel { + + +! Verify that we restort to using the outside value for the upper bound since it ---------------- skatrak wrote:
```suggestion ! Verify that we resort to using the outside value for the upper bound since it ``` https://github.com/llvm/llvm-project/pull/127633 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits