[Mlir-commits] [mlir] [MLIR][Remark] Add remark linking and query-based related remarks (PR #180953)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Feb 12 02:26:29 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 7480 tests passed
* 600 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### MLIR
<details>
<summary>MLIR.Pass/remarks.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 /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/remarks.mlir --test-remark --remarks-filter-passed="category-1-passed" 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/remarks.mlir -check-prefix=CHECK-PASSED
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/remarks.mlir --test-remark --remarks-filter-passed=category-1-passed
# 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/Pass/remarks.mlir -check-prefix=CHECK-PASSED
# note: command had no output on stdout or stderr
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/remarks.mlir --test-remark --remarks-filter-missed="a-category-1-missed" 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/remarks.mlir -check-prefix=CHECK-MISSED
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/remarks.mlir --test-remark --remarks-filter-missed=a-category-1-missed
# 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/Pass/remarks.mlir -check-prefix=CHECK-MISSED
# note: command had no output on stdout or stderr
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/remarks.mlir --test-remark --remarks-filter-failed="category-2-failed" 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/remarks.mlir -check-prefix=CHECK-FAILED
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/remarks.mlir --test-remark --remarks-filter-failed=category-2-failed
# 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/Pass/remarks.mlir -check-prefix=CHECK-FAILED
# note: command had no output on stdout or stderr
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/remarks.mlir --test-remark --remarks-filter-analyse="category-2-analysis" 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/remarks.mlir -check-prefix=CHECK-ANALYSIS
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/remarks.mlir --test-remark --remarks-filter-analyse=category-2-analysis
# 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/Pass/remarks.mlir -check-prefix=CHECK-ANALYSIS
# note: command had no output on stdout or stderr
# RUN: at line 5
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/remarks.mlir --test-remark --remarks-filter="category.*" 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/remarks.mlir -check-prefix=CHECK-ALL
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/mlir-opt /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/remarks.mlir --test-remark '--remarks-filter=category.*'
# 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/Pass/remarks.mlir -check-prefix=CHECK-ALL
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/remarks.mlir:24:15: error: CHECK-ALL: expected string not found in input
# | // CHECK-ALL: remark: [Passed]{{.*}}test-remark | Category:category-link |
# | ^
# | <stdin>:16:148: note: scanning from here
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/remarks.mlir:9:3: remark: [Analysis] test-remark | Category:category-link | Remark="Analysis that enables optimization"
# | ^
# | <stdin>:16:149: note: possible intended match here
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/remarks.mlir:9:3: remark: [Analysis] test-remark | Category:category-link | Remark="Analysis that enables optimization"
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/remarks.mlir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 11: "test.op"() : () -> ()
# | 12: ^
# | 13: /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/remarks.mlir:9:3: remark: [Passed] test-remark | Category:category-link | Remark="Optimization enabled by analysis"
# | 14: "test.op"() : () -> ()
# | 15: ^
# | 16: /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/test/Pass/remarks.mlir:9:3: remark: [Analysis] test-remark | Category:category-link | Remark="Analysis that enables optimization"
# | check:24'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | check:24'1 ? possible intended match
# | 17: "test.op"() : () -> ()
# | check:24'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 18: ^
# | check:24'0 ~~~
# | 19: module @foo {
# | check:24'0 ~~~~~~~~~~~~~~
# | 20: "test.op"() : () -> ()
# | check:24'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 21: }
# | check:24'0 ~~
# | 22:
# | check:24'0 ~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
### MLIR-Unit
<details>
<summary>MLIR-Unit.IR/_/MLIRIRTests/Remark/TestRemarkLinking</summary>
```
Script:
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/unittests/IR/./MLIRIRTests --gtest_filter=Remark.TestRemarkLinking
--
/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/unittests/IR/RemarkTest.cpp:552
Value of: static_cast<bool>(analysisId)
Actual: false
Expected: true
/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/unittests/IR/RemarkTest.cpp:553
Expected: (analysisId.getValue()) > (0u), actual: 0 vs 0
/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/unittests/IR/RemarkTest.cpp:566
Value of: errOut
Expected: has substring "RemarkId="
Actual: "Custom remark: [Passed] LoopOptimized | Category:Optimizer | @\"test.cpp\":10:5Remark=\"vectorized loop\"\nCustom remark: [Analysis] LoopAnalysis | Category:Optimizer | @\"test.cpp\":10:5Remark=\"analyzed loop with trip count 128\"\n"
/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/unittests/IR/RemarkTest.cpp:569
Value of: errOut
Expected: has substring "RelatedTo="
Actual: "Custom remark: [Passed] LoopOptimized | Category:Optimizer | @\"test.cpp\":10:5Remark=\"vectorized loop\"\nCustom remark: [Analysis] LoopAnalysis | Category:Optimizer | @\"test.cpp\":10:5Remark=\"analyzed loop with trip count 128\"\n"
```
</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/180953
More information about the Mlir-commits
mailing list