[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: Linux-->
# :penguin: Linux x64 Test Results
* 181083 tests passed
* 3714 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
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -mattr=+experimental-p,+zbb,+m -verify-machineinstrs < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rv32p.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rv32p.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv32 -mattr=+experimental-p,+zbb,+m -verify-machineinstrs
# .---command stderr------------
# | llc: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/RISCV/RISCVExpandPseudoBase.cpp:43: bool llvm::RISCVExpandPseudoImplBase::run(MachineFunction &): Assertion `OldSize >= NewSize && "Expanding Pseudos should not increase function size estimate"' failed.
# | 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: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -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'
# | #0 0x00000000087ff7eb llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:931:13
# | #1 0x00000000087fc6b1 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# | #2 0x000000000880060b SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:474:38
# | #3 0x000079f752f26330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# | #4 0x000079f752f7fb2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# | #5 0x000079f752f2627e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# | #6 0x000079f752f098ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# | #7 0x000079f752f0981b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# | #8 0x000079f752f1c517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# | #9 0x000000000649f113 (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc+0x649f113)
# | #10 0x000000000649e34f (anonymous namespace)::RISCVPostRAExpandPseudoLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/RISCV/RISCVPostRAExpandPseudoInsts.cpp:53:5
# | #11 0x0000000007497f59 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:99:7
# | #12 0x0000000007a2afc0 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
# | #13 0x0000000007a32ae2 llvm::FPPassManager::runOnModule(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1470:13
# | #14 0x0000000007a2bd26 runOnModule /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
# | #15 0x0000000007a2bd26 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:533:44
# | #16 0x00000000051458a1 compileModule(char**, llvm::SmallVectorImpl<llvm::PassPlugin>&, llvm::LLVMContext&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/llc.cpp:886:17
# | #17 0x0000000005142803 main /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/llc.cpp:460:13
# | #18 0x000079f752f0b1ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #19 0x000079f752f0b28b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #20 0x00000000051419a5 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc+0x51419a5)
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rv32p.ll
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_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
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -mattr=+experimental-p,+zbb,+m -verify-machineinstrs < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rv64p.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rv64p.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=riscv64 -mattr=+experimental-p,+zbb,+m -verify-machineinstrs
# .---command stderr------------
# | llc: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/RISCV/RISCVExpandPseudoBase.cpp:43: bool llvm::RISCVExpandPseudoImplBase::run(MachineFunction &): Assertion `OldSize >= NewSize && "Expanding Pseudos should not increase function size estimate"' failed.
# | 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: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -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'
# | #0 0x00000000087ff7eb llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:931:13
# | #1 0x00000000087fc6b1 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# | #2 0x000000000880060b SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:474:38
# | #3 0x00007d998df75330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# | #4 0x00007d998dfceb2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# | #5 0x00007d998df7527e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# | #6 0x00007d998df588ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# | #7 0x00007d998df5881b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# | #8 0x00007d998df6b517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# | #9 0x000000000649f113 (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc+0x649f113)
# | #10 0x000000000649e34f (anonymous namespace)::RISCVPostRAExpandPseudoLegacy::runOnMachineFunction(llvm::MachineFunction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/RISCV/RISCVPostRAExpandPseudoInsts.cpp:53:5
# | #11 0x0000000007497f59 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:99:7
# | #12 0x0000000007a2afc0 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
# | #13 0x0000000007a32ae2 llvm::FPPassManager::runOnModule(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1470:13
# | #14 0x0000000007a2bd26 runOnModule /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
# | #15 0x0000000007a2bd26 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:533:44
# | #16 0x00000000051458a1 compileModule(char**, llvm::SmallVectorImpl<llvm::PassPlugin>&, llvm::LLVMContext&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/llc.cpp:886:17
# | #17 0x0000000005142803 main /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/llc.cpp:460:13
# | #18 0x00007d998df5a1ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #19 0x00007d998df5a28b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #20 0x00000000051419a5 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc+0x51419a5)
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/RISCV/rv64p.ll
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_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