[llvm] [CodeGen] Support --print-changed for legacy codegen IR passes (PR #202252)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 9 21:10:38 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 135686 tests passed
* 3395 tests skipped
* 1 test failed

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

### LLVM
<details>
<summary>LLVM.Other/print-changed-machine.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -filetype=null -mtriple=aarch64 -O0 -print-changed C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll 2>&1 |    c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll --check-prefixes=VERBOSE,VERBOSE-BAR      --implicit-check-not='(cseinfo)' --implicit-check-not='Free MachineFunction'
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -filetype=null -mtriple=aarch64 -O0 -print-changed 'C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll' --check-prefixes=VERBOSE,VERBOSE-BAR '--implicit-check-not=(cseinfo)' '--implicit-check-not=Free MachineFunction'
# note: command had no output on stdout or stderr
# RUN: at line 6
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -filetype=null -mtriple=aarch64 -O0 -print-changed -filter-print-funcs=foo C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll --check-prefixes=VERBOSE,NO-BAR
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -filetype=null -mtriple=aarch64 -O0 -print-changed -filter-print-funcs=foo 'C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll' --check-prefixes=VERBOSE,NO-BAR
# note: command had no output on stdout or stderr
# RUN: at line 23
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -filetype=null -mtriple=aarch64 -O0 -print-changed=quiet C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll --check-prefix=QUIET
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -filetype=null -mtriple=aarch64 -O0 -print-changed=quiet 'C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll' --check-prefix=QUIET
# note: command had no output on stdout or stderr
# RUN: at line 29
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -filetype=null -mtriple=aarch64 -O0 -print-changed -filter-passes=irtranslator,legalizer C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll 2>&1 |    c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll --check-prefixes=VERBOSE-FILTER
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -filetype=null -mtriple=aarch64 -O0 -print-changed -filter-passes=irtranslator,legalizer 'C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll' --check-prefixes=VERBOSE-FILTER
# note: command had no output on stdout or stderr
# RUN: at line 31
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -filetype=null -mtriple=aarch64 -O0 -print-changed=quiet -filter-passes=irtranslator C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll 2>&1 |    c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll --check-prefixes=QUIET-FILTER --implicit-check-not='IR Dump'
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -filetype=null -mtriple=aarch64 -O0 -print-changed=quiet -filter-passes=irtranslator 'C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll' --check-prefixes=QUIET-FILTER '--implicit-check-not=IR Dump'
# note: command had no output on stdout or stderr
# RUN: at line 45
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -filetype=null -mtriple=aarch64 -O0 -print-changed=dot-cfg C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll --check-prefix=QUIET
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -filetype=null -mtriple=aarch64 -O0 -print-changed=dot-cfg 'C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll' --check-prefix=QUIET
# note: command had no output on stdout or stderr
# RUN: at line 49
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -filetype=null -mtriple=aarch64 -O0 -print-changed=diff-quiet    -filter-passes=atomic-expand -filter-print-funcs=atomic_load C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll 2>&1 |    c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll --check-prefix=IR-PASS
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -filetype=null -mtriple=aarch64 -O0 -print-changed=diff-quiet -filter-passes=atomic-expand -filter-print-funcs=atomic_load 'C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll' --check-prefix=IR-PASS
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll:53:17: error: IR-PASS-NEXT: expected string not found in input
# | ; IR-PASS-NEXT: define i128 @atomic_load
# |                 ^
# | <stdin>:1:80: note: scanning from here
# | *** IR Dump After Expand Atomic instructions (atomic-expand) on atomic_load ***
# |                                                                                ^
# | <stdin>:2:10: note: possible intended match here
# | Error executing system diff.
# |          ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Other\print-changed-machine.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1: *** IR Dump After Expand Atomic instructions (atomic-expand) on atomic_load *** 
# | next:53'0                                                                                    X error: no match found
# |            2: Error executing system diff.
# | next:53'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:53'1              ?                   possible intended match
# | >>>>>>
# `-----------------------------
# 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/202252


More information about the llvm-commits mailing list