[llvm] [RISCV] Fix musttail with indirect arguments by forwarding incoming pointers (PR #185094)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 19 04:36:49 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 133725 tests passed
* 3121 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.CodeGen/RISCV/musttail-indirect-args.ll</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=riscv32 C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\RISCV\musttail-indirect-args.ll -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\RISCV\musttail-indirect-args.ll --check-prefix=RV32
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=riscv32 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\RISCV\musttail-indirect-args.ll' -o -
# .---command stderr------------
# | Assertion failed: !IsTailCall && "Tail call not allowed if stack is used " "for passing parameters", file C:\_work\llvm-project\llvm-project\llvm\lib\Target\RISCV\RISCVISelLowering.cpp, line 24833
# | 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 C:\\_work\\llvm-project\\llvm-project\\llvm\\test\\CodeGen\\RISCV\\musttail-indirect-args.ll -o -
# | 1. Running pass 'Function Pass Manager' on module 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\RISCV\musttail-indirect-args.ll'.
# | 2. Running pass 'RISC-V DAG->DAG Pattern Instruction Selection' on function '@caller_musttail_nine_indirect'
# | Exception Code: 0xC000001D
# | #0 0x00007ff7df7ea5c6 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2dda5c6)
# | #1 0x00007fff6442bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# | #2 0x00007fff6442cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# | #3 0x00007fff6442e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# | #4 0x00007fff6442e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# | #5 0x00007ff7de637559 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1c27559)
# | #6 0x00007ff7de7bcbb9 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1dacbb9)
# | #7 0x00007ff7de7e77ea (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1dd77ea)
# | #8 0x00007ff7de7c6ed5 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1db6ed5)
# | #9 0x00007ff7de7ab4a7 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1d9b4a7)
# | #10 0x00007ff7de79975c (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1d8975c)
# | #11 0x00007ff7dd0eeadb (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x6deadb)
# | #12 0x00007ff7dd0ee320 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x6de320)
# | #13 0x00007ff7dd0ea2d5 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x6da2d5)
# | #14 0x00007ff7dd0e7354 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x6d7354)
# | #15 0x00007ff7dd4af083 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xa9f083)
# | #16 0x00007ff7dcef9429 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4e9429)
# | #17 0x00007ff7dcf01ebd (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4f1ebd)
# | #18 0x00007ff7dcefa0a8 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4ea0a8)
# | #19 0x00007ff7dca1747f (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x747f)
# | #20 0x00007ff7e134a1a0 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x493a1a0)
# | #21 0x00007fff6d974cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #22 0x00007fff768bedcb (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\RISCV\musttail-indirect-args.ll' --check-prefix=RV32
# .---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\musttail-indirect-args.ll --check-prefix=RV32
# `-----------------------------
# 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/185094
More information about the llvm-commits
mailing list