[Mlir-commits] [mlir] [mlir][OpenMP] Fix update of linear iteration variables (PR #183800)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Mar 4 07:04:48 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 7569 tests passed
* 603 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### MLIR
<details>
<summary>MLIR.Target/LLVMIR/openmp-llvm.mlir</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-translate -mlir-to-llvmir -split-input-file /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Target/LLVMIR/openmp-llvm.mlir | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Target/LLVMIR/openmp-llvm.mlir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-translate -mlir-to-llvmir -split-input-file /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Target/LLVMIR/openmp-llvm.mlir
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Target/LLVMIR/openmp-llvm.mlir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Target/LLVMIR/openmp-llvm.mlir:788:11: error: CHECK: expected string not found in input
# | // CHECK: %[[LOAD:.*]] = load i64, ptr %[[LINEAR_VAR]], {{.*}}!llvm.access.group
# |           ^
# | <stdin>:3550:36: note: scanning from here
# |  %17 = sext i32 %omp_loop.iv to i64
# |                                    ^
# | <stdin>:3550:36: note: with "LINEAR_VAR" equal to ".linear_var"
# |  %17 = sext i32 %omp_loop.iv to i64
# |                                    ^
# | <stdin>:3553:30: note: possible intended match here
# |  store i64 %19, ptr %.linear_result, align 4, !llvm.access.group !1
# |                              ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Target/LLVMIR/openmp-llvm.mlir:821:16: error: CHECK-NEXT: expected string not found in input
# | // CHECK-NEXT: %[[LOAD:.*]] = load double, ptr %[[LINEAR_VAR]], {{.*}}!llvm.access.group
# |                ^
# | <stdin>:3630:31: note: scanning from here
# |  %17 = mul i32 %omp_loop.iv, 1
# |                               ^
# | <stdin>:3630:31: note: with "LINEAR_VAR" equal to ".linear_var"
# |  %17 = mul i32 %omp_loop.iv, 1
# |                               ^
# | <stdin>:3633:18: note: possible intended match here
# |  store double %19, ptr %.linear_result, align 8, !llvm.access.group !1
# |                  ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Target/LLVMIR/openmp-llvm.mlir
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |              .
# |              .
# |              .
# |           3545:  
# |           3546: omp_loop.body: ; preds = %omp_loop.cond 
# |           3547:  %14 = mul i32 %omp_loop.iv, 1 
# |           3548:  %15 = add i32 %14, %0 
# |           3549:  %16 = load i64, ptr %.linear_var, align 4, !llvm.access.group !1 
# |           3550:  %17 = sext i32 %omp_loop.iv to i64 
# | check:788'0                                        X error: no match found
# | check:788'1                                          with "LINEAR_VAR" equal to ".linear_var"
# |           3551:  %18 = mul i64 %17, 1 
# | check:788'0     ~~~~~~~~~~~~~~~~~~~~~~
# |           3552:  %19 = add i64 %16, %18 
# | check:788'0     ~~~~~~~~~~~~~~~~~~~~~~~~
# |           3553:  store i64 %19, ptr %.linear_result, align 4, !llvm.access.group !1 
# | check:788'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:788'2                                  ?                                       possible intended match
# |           3554:  br label %omp.loop_nest.region 
# | check:788'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           3555:  
# | check:788'0     ~
# |           3556: omp.loop_nest.region: ; preds = %omp_loop.body 
# | check:788'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           3557:  br label %omp.region.cont1 
# | check:788'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           3558:  
# | check:788'0     ~
# |              .
# |              .
# |              .
# |           3625:  
# |           3626: omp_loop.body: ; preds = %omp_loop.cond 
# |           3627:  %14 = mul i32 %omp_loop.iv, 1 
# |           3628:  %15 = add i32 %14, %0 
# |           3629:  %16 = load double, ptr %.linear_var, align 8, !llvm.access.group !1 
# |           3630:  %17 = mul i32 %omp_loop.iv, 1 
# | next:821'0                                    X error: no match found
# | next:821'1                                      with "LINEAR_VAR" equal to ".linear_var"
# |           3631:  %18 = sitofp i32 %17 to double 
# | next:821'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           3632:  %19 = fadd double %16, %18 
# | next:821'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           3633:  store double %19, ptr %.linear_result, align 8, !llvm.access.group !1 
# | next:821'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:821'2                       ?                                                      possible intended match
# |           3634:  br label %omp.loop_nest.region 
# | next:821'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           3635:  
# | next:821'0      ~
# |           3636: omp.loop_nest.region: ; preds = %omp_loop.body 
# | next:821'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           3637:  br label %omp.region.cont1 
# | next:821'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           3638:  
# | next:821'0      ~
# |              .
# |              .
# |              .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the Mlir-commits mailing list