[llvm] [RISCV][NFCI] Introduce Base for Pseudo Expansion Passes (PR #218170)

via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 22 17:22:49 PDT 2026


github-actions[bot] wrote:

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

* 140193 tests passed
* 3727 tests skipped
* 2 tests failed

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

### LLVM
<details>
<summary>LLVM.CodeGen/RISCV/rv32p.ll</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=riscv32 -mattr=+experimental-p,+zbb,+m -verify-machineinstrs    < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\RISCV\rv32p.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\RISCV\rv32p.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=riscv32 -mattr=+experimental-p,+zbb,+m -verify-machineinstrs
# .---command stderr------------
# | Assertion failed: OldSize >= NewSize && "Expanding Pseudos should not increase function size estimate", file C:\_work\llvm-project\llvm-project\llvm\lib\Target\RISCV\RISCVExpandPseudoBase.cpp, line 43
# | 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=riscv32 -mattr=+experimental-p,+zbb,+m -verify-machineinstrs
# | 1.	Running pass 'Function Pass Manager' on module '<stdin>'.
# | 2.	Running pass 'RISC-V post-regalloc pseudo instruction expansion pass' on function '@merge_i32_mv'
# | Exception Code: 0xC000001D
# |  #0 0x00007ff7195806f6 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2f206f6)
# |  #1 0x00007fff79a5bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |  #2 0x00007fff79a5cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |  #3 0x00007fff79a5e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# |  #4 0x00007fff79a5e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# |  #5 0x00007ff71a3e5c68 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x3d85c68)
# |  #6 0x00007ff718215331 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1bb5331)
# |  #7 0x00007ff7171ef9f9 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xb8f9f9)
# |  #8 0x00007ff716bb4230 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x554230)
# |  #9 0x00007ff716bbcaad (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x55caad)
# | #10 0x00007ff716bb52c0 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x5552c0)
# | #11 0x00007ff716665646 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x5646)
# | #12 0x00007ff7166629b6 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x29b6)
# | #13 0x00007ff71b1945d0 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4b345d0)
# | #14 0x00007fff7b584cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #15 0x00007fff8d09edfb (C:\Windows\SYSTEM32\ntdll.dll+0x7edfb)
# `-----------------------------
# 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\RISCV\rv32p.ll'
# .---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\RISCV\rv32p.ll
# `-----------------------------
# error: command failed with exit status: 2

--

```
</details>
<details>
<summary>LLVM.CodeGen/RISCV/rv64p.ll</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=riscv64 -mattr=+experimental-p,+zbb,+m -verify-machineinstrs    < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\RISCV\rv64p.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\RISCV\rv64p.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=riscv64 -mattr=+experimental-p,+zbb,+m -verify-machineinstrs
# .---command stderr------------
# | Assertion failed: OldSize >= NewSize && "Expanding Pseudos should not increase function size estimate", file C:\_work\llvm-project\llvm-project\llvm\lib\Target\RISCV\RISCVExpandPseudoBase.cpp, line 43
# | 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=riscv64 -mattr=+experimental-p,+zbb,+m -verify-machineinstrs
# | 1.	Running pass 'Function Pass Manager' on module '<stdin>'.
# | 2.	Running pass 'RISC-V post-regalloc pseudo instruction expansion pass' on function '@merge_i64_mv'
# | Exception Code: 0xC000001D
# |  #0 0x00007ff7195806f6 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2f206f6)
# |  #1 0x00007fff79a5bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |  #2 0x00007fff79a5cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |  #3 0x00007fff79a5e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# |  #4 0x00007fff79a5e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# |  #5 0x00007ff71a3e5c68 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x3d85c68)
# |  #6 0x00007ff718215331 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1bb5331)
# |  #7 0x00007ff7171ef9f9 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xb8f9f9)
# |  #8 0x00007ff716bb4230 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x554230)
# |  #9 0x00007ff716bbcaad (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x55caad)
# | #10 0x00007ff716bb52c0 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x5552c0)
# | #11 0x00007ff716665646 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x5646)
# | #12 0x00007ff7166629b6 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x29b6)
# | #13 0x00007ff71b1945d0 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4b345d0)
# | #14 0x00007fff7b584cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #15 0x00007fff8d09edfb (C:\Windows\SYSTEM32\ntdll.dll+0x7edfb)
# `-----------------------------
# 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\RISCV\rv64p.ll'
# .---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\RISCV\rv64p.ll
# `-----------------------------
# 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/218170


More information about the llvm-commits mailing list