[flang-commits] [flang] [flang][Lower][OpenMP] Don't read moldarg for static sized array (PR #125901)
LLVM Continuous Integration via flang-commits
flang-commits at lists.llvm.org
Tue Feb 18 01:14:02 PST 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `openmp-offload-sles-build-only` running on `rocm-worker-hw-04-sles` while building `flang` at step 7 "Add check check-flang".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/17178
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 7 (Add check check-flang) failure: test (failure)
******************** TEST 'Flang :: Lower/OpenMP/different_vars_lastprivate_barrier.f90' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 1: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/flang -fc1 -fopenmp -mmlir --openmp-enable-delayed-privatization-staging=true -emit-hlfir /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/flang/test/Lower/OpenMP/different_vars_lastprivate_barrier.f90 -o - | /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/flang/test/Lower/OpenMP/different_vars_lastprivate_barrier.f90
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/flang -fc1 -fopenmp -mmlir --openmp-enable-delayed-privatization-staging=true -emit-hlfir /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/flang/test/Lower/OpenMP/different_vars_lastprivate_barrier.f90 -o -
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/FileCheck /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/flang/test/Lower/OpenMP/different_vars_lastprivate_barrier.f90
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/flang/test/Lower/OpenMP/different_vars_lastprivate_barrier.f90:16:10: error: CHECK: expected string not found in input
! CHECK: %[[BOX_DIMS:.*]]:3 = fir.box_dims %[[ORIG_VAL]], %{{.*}} : ([[BOX_TYPE]], index) -> (index, index, index)
^
<stdin>:17:21: note: scanning from here
%0 = fir.load %arg0 : !fir.ref<!fir.box<!fir.array<3xi32>>>
^
<stdin>:17:21: note: with "ORIG_VAL" equal to "0"
%0 = fir.load %arg0 : !fir.ref<!fir.box<!fir.array<3xi32>>>
^
<stdin>:17:21: note: with "BOX_TYPE" equal to "!fir\\.box<!fir\\.array<3xi32>>"
%0 = fir.load %arg0 : !fir.ref<!fir.box<!fir.array<3xi32>>>
^
<stdin>:34:2: note: possible intended match here
%3 = fir.shape %c3 : (index) -> !fir.shape<1>
^
Input file: <stdin>
Check file: /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/flang/test/Lower/OpenMP/different_vars_lastprivate_barrier.f90
-dump-input=help explains the following input dump.
Input was:
<<<<<<
.
.
.
12: %4 = fir.embox %2#0(%3) : (!fir.heap<!fir.array<3xi32>>, !fir.shapeshift<1>) -> !fir.box<!fir.array<3xi32>>
13: fir.store %4 to %arg1 : !fir.ref<!fir.box<!fir.array<3xi32>>>
14: omp.yield(%arg1 : !fir.ref<!fir.box<!fir.array<3xi32>>>)
15: } dealloc {
16: ^bb0(%arg0: !fir.ref<!fir.box<!fir.array<3xi32>>>):
17: %0 = fir.load %arg0 : !fir.ref<!fir.box<!fir.array<3xi32>>>
check:16'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
check:16'1 with "ORIG_VAL" equal to "0"
check:16'2 with "BOX_TYPE" equal to "!fir\\.box<!fir\\.array<3xi32>>"
18: %1 = fir.box_addr %0 : (!fir.box<!fir.array<3xi32>>) -> !fir.ref<!fir.array<3xi32>>
check:16'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19: %2 = fir.convert %1 : (!fir.ref<!fir.array<3xi32>>) -> i64
check:16'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20: %c0_i64 = arith.constant 0 : i64
check:16'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21: %3 = arith.cmpi ne, %2, %c0_i64 : i64
...
```
</details>
https://github.com/llvm/llvm-project/pull/125901
More information about the flang-commits
mailing list