[flang-commits] [flang] [mlir] [Flang] Implement !$omp unroll using omp.unroll_heuristic (PR #144785)

LLVM Continuous Integration via flang-commits flang-commits at lists.llvm.org
Tue Jul 22 02:58:01 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `flang-aarch64-out-of-tree` running on `linaro-flang-aarch64-out-of-tree` while building `flang` at step 11 "test-build-flang-unified-tree-check-flang".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/53/builds/17907

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 11 (test-build-flang-unified-tree-check-flang) failure: test (failure)
******************** TEST 'Flang :: Lower/OpenMP/unroll-heuristic02.f90' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_flang/bin/flang -fc1 -emit-hlfir -fopenmp -fopenmp-version=51 -o - /home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang/test/Lower/OpenMP/unroll-heuristic02.f90 2>&1 | /home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_llvm/bin/FileCheck /home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang/test/Lower/OpenMP/unroll-heuristic02.f90 # RUN: at line 1
+ /home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_flang/bin/flang -fc1 -emit-hlfir -fopenmp -fopenmp-version=51 -o - /home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang/test/Lower/OpenMP/unroll-heuristic02.f90
+ /home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_llvm/bin/FileCheck /home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang/test/Lower/OpenMP/unroll-heuristic02.f90
/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang/test/Lower/OpenMP/unroll-heuristic02.f90:23:14: error: CHECK-NEXT: expected string not found in input
!CHECK-NEXT: %18 = arith.cmpi slt, %17, %c0_i32 : i32
             ^
<stdin>:25:34: note: scanning from here
 %c1_i32 = arith.constant 1 : i32
                                 ^
<stdin>:26:2: note: possible intended match here
 %20 = arith.cmpi slt, %19, %c0_i32 : i32
 ^

Input file: <stdin>
Check file: /home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/flang/test/Lower/OpenMP/unroll-heuristic02.f90

-dump-input=help explains the following input dump.

Input was:
<<<<<<
           .
           .
           .
          20:  %16:2 = hlfir.declare %15 {uniq_name = "_QFomp_unroll_heuristic_nested02Ej"} : (!fir.ref<i32>) -> (!fir.ref<i32>, !fir.ref<i32>) 
          21:  %17 = fir.load %9#0 : !fir.ref<i32> 
          22:  %18 = fir.load %10#0 : !fir.ref<i32> 
          23:  %19 = fir.load %8#0 : !fir.ref<i32> 
          24:  %c0_i32 = arith.constant 0 : i32 
          25:  %c1_i32 = arith.constant 1 : i32 
next:23'0                                      X error: no match found
          26:  %20 = arith.cmpi slt, %19, %c0_i32 : i32 
next:23'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
next:23'1      ?                                         possible intended match
          27:  %21 = arith.subi %c0_i32, %19 : i32 
next:23'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          28:  %22 = arith.select %20, %21, %19 : i32 
next:23'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          29:  %23 = arith.select %20, %18, %17 : i32 
next:23'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          30:  %24 = arith.select %20, %17, %18 : i32 
next:23'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          31:  %25 = arith.subi %24, %23 overflow<nuw> : i32 
next:23'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           .
           .
...

```

</details>

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


More information about the flang-commits mailing list