[Mlir-commits] [mlir] [mlir] Improve dialect conversion failure diagnostics (PR #182729)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Sun Feb 22 02:18:22 PST 2026


github-actions[bot] wrote:

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

* 7514 tests passed
* 601 tests skipped
* 1 test failed

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

### MLIR
<details>
<summary>MLIR.Transforms/test-legalizer.mlir</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt -allow-unregistered-dialect -split-input-file -test-legalize-patterns="allow-pattern-rollback=1" -verify-diagnostics /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Transforms/test-legalizer.mlir | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Transforms/test-legalizer.mlir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt -allow-unregistered-dialect -split-input-file -test-legalize-patterns=allow-pattern-rollback=1 -verify-diagnostics /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Transforms/test-legalizer.mlir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Transforms/test-legalizer.mlir:228:15: error: unexpected error: failed to legalize operation 'test.illegal_op_f' that was explicitly marked illegal; operands (), results ('i32'); no conversion pattern matched
# |     %result = "test.illegal_op_f"() : () -> (i32)
# |               ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Transforms/test-legalizer.mlir:227:8: error: expected error "failed to legalize operation 'test.illegal_op_f'; operands (), results ('i32'); no conversion pattern matched" was not produced
# |     // expected-error at +1 {{failed to legalize operation 'test.illegal_op_f'; operands (), results ('i32'); no conversion pattern matched}}
# |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# `-----------------------------
# error: command failed with exit status: 1
# 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/Transforms/test-legalizer.mlir
# note: command had no output on stdout or stderr

--

```
</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/182729


More information about the Mlir-commits mailing list