[llvm] [RegisterPressure] Remove dead defs correctly (PR #156576)

via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 10 08:06:21 PST 2026


github-actions[bot] wrote:

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

* 130739 tests passed
* 2925 tests skipped
* 2 tests failed

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

### LLVM
<details>
<summary>LLVM.CodeGen/PowerPC/remove-implicit-use.mir</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=powerpc64le-unknown-unknown -start-after=ppc-mi-peepholes  -stop-after=ppc-pre-emit-peephole -verify-machineinstrs C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\PowerPC\remove-implicit-use.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\PowerPC\remove-implicit-use.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=powerpc64le-unknown-unknown -start-after=ppc-mi-peepholes -stop-after=ppc-pre-emit-peephole -verify-machineinstrs 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\PowerPC\remove-implicit-use.mir' -o -
# .---command stderr------------
# | Assertion failed: (PDiffI->getUnitInc() >= 0) == (PNew >= POld) && "PSet overflow/underflow", file C:\_work\llvm-project\llvm-project\llvm\lib\CodeGen\RegisterPressure.cpp, line 1193
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.	Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\llc.exe -mtriple=powerpc64le-unknown-unknown -start-after=ppc-mi-peepholes -stop-after=ppc-pre-emit-peephole -verify-machineinstrs C:\\_work\\llvm-project\\llvm-project\\llvm\\test\\CodeGen\\PowerPC\\remove-implicit-use.mir -o -
# | 1.	Running pass 'Function Pass Manager' on module 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\PowerPC\remove-implicit-use.mir'.
# | 2.	Running pass 'Machine Instruction Scheduler' on function '@test'
# | Exception Code: 0xC000001D
# |  #0 0x00007ff69814c806 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2cbc806)
# |  #1 0x00007ffc3920bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |  #2 0x00007ffc3920cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |  #3 0x00007ffc3920e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# |  #4 0x00007ffc3920e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# |  #5 0x00007ff6986c2248 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x3232248)
# |  #6 0x00007ff69607167c (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xbe167c)
# |  #7 0x00007ff696071c65 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xbe1c65)
# |  #8 0x00007ff69607201a (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xbe201a)
# |  #9 0x00007ff696072ce4 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xbe2ce4)
# | #10 0x00007ff696067cf2 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xbd7cf2)
# | #11 0x00007ff69605e364 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xbce364)
# | #12 0x00007ff69605db09 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xbcdb09)
# | #13 0x00007ff696075e2e (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xbe5e2e)
# | #14 0x00007ff695ecd143 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xa3d143)
# | #15 0x00007ff69593d3e2 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4ad3e2)
# | #16 0x00007ff6959464bd (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4b64bd)
# | #17 0x00007ff69593e0c1 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4ae0c1)
# | #18 0x00007ff695497ab7 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x7ab7)
# | #19 0x00007ff695494d36 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4d36)
# | #20 0x00007ff699bf4cd0 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4764cd0)
# | #21 0x00007ffc41144cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #22 0x00007ffc49afedcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\PowerPC\remove-implicit-use.mir'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\PowerPC\remove-implicit-use.mir
# `-----------------------------
# error: command failed with exit status: 2

--

```
</details>
<details>
<summary>LLVM.CodeGen/X86/dead-register-pr76416.mir</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=x86_64-unknown-unknown -run-pass=machine-scheduler -verify-misched -o - C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\dead-register-pr76416.mir | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\dead-register-pr76416.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=x86_64-unknown-unknown -run-pass=machine-scheduler -verify-misched -o - 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\dead-register-pr76416.mir'
# .---command stderr------------
# | Assertion failed: (PDiffI->getUnitInc() >= 0) == (PNew >= POld) && "PSet overflow/underflow", file C:\_work\llvm-project\llvm-project\llvm\lib\CodeGen\RegisterPressure.cpp, line 1193
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.	Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\llc.exe -mtriple=x86_64-unknown-unknown -run-pass=machine-scheduler -verify-misched -o - C:\\_work\\llvm-project\\llvm-project\\llvm\\test\\CodeGen\\X86\\dead-register-pr76416.mir
# | 1.	Running pass 'Function Pass Manager' on module 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\dead-register-pr76416.mir'.
# | 2.	Running pass 'Machine Instruction Scheduler' on function '@vga_load_state'
# | Exception Code: 0xC000001D
# |  #0 0x00007ff69814c806 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2cbc806)
# |  #1 0x00007ffc3920bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |  #2 0x00007ffc3920cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |  #3 0x00007ffc3920e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# |  #4 0x00007ffc3920e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# |  #5 0x00007ff6986c2248 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x3232248)
# |  #6 0x00007ff6986c1751 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x3231751)
# |  #7 0x00007ff696071543 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xbe1543)
# |  #8 0x00007ff696071c65 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xbe1c65)
# |  #9 0x00007ff696072c89 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xbe2c89)
# | #10 0x00007ff696067cf2 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xbd7cf2)
# | #11 0x00007ff69605e364 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xbce364)
# | #12 0x00007ff69605db09 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xbcdb09)
# | #13 0x00007ff696075e2e (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xbe5e2e)
# | #14 0x00007ff695ecd143 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xa3d143)
# | #15 0x00007ff69593d3e2 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4ad3e2)
# | #16 0x00007ff6959464bd (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4b64bd)
# | #17 0x00007ff69593e0c1 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4ae0c1)
# | #18 0x00007ff695497ab7 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x7ab7)
# | #19 0x00007ff695494d36 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4d36)
# | #20 0x00007ff699bf4cd0 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4764cd0)
# | #21 0x00007ffc41144cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #22 0x00007ffc49afedcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\dead-register-pr76416.mir'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\dead-register-pr76416.mir
# `-----------------------------
# error: command failed with exit status: 2

--

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


More information about the llvm-commits mailing list