[llvm] [SelectionDAG][RISCV] Support STACK/PATCHPOINT in SoftenFloatOperand. (PR #165922)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 31 23:56:48 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `ml-opt-rel-x86-64` running on `ml-opt-rel-x86-64-b2` while building `llvm` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/185/builds/28043

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: CodeGen/RISCV/rv64-stackmap.ll' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
/b/ml-opt-rel-x86-64-b1/build/bin/llc -mtriple=riscv64 < /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/RISCV/rv64-stackmap.ll | /b/ml-opt-rel-x86-64-b1/build/bin/FileCheck /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/RISCV/rv64-stackmap.ll
# executed command: /b/ml-opt-rel-x86-64-b1/build/bin/llc -mtriple=riscv64
# .---command stderr------------
# | llc: /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp:3814: bool llvm::DAGTypeLegalizer::SoftPromoteHalfOperand(SDNode *, unsigned int): Assertion `Res.getNode() != N && "Expected a new node!"' 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: /b/ml-opt-rel-x86-64-b1/build/bin/llc -mtriple=riscv64
# | 1.	Running pass 'Function Pass Manager' on module '<stdin>'.
# | 2.	Running pass 'RISC-V DAG->DAG Pattern Instruction Selection' on function '@floats'
# |  #0 0x000055b1ebcf0a88 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/b/ml-opt-rel-x86-64-b1/build/bin/llc+0x7e4ba88)
# |  #1 0x000055b1ebcee1a5 llvm::sys::RunSignalHandlers() (/b/ml-opt-rel-x86-64-b1/build/bin/llc+0x7e491a5)
# |  #2 0x000055b1ebcf1801 SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
# |  #3 0x00007fa5db65a050 (/lib/x86_64-linux-gnu/libc.so.6+0x3c050)
# |  #4 0x00007fa5db6a8eec (/lib/x86_64-linux-gnu/libc.so.6+0x8aeec)
# |  #5 0x00007fa5db659fb2 raise (/lib/x86_64-linux-gnu/libc.so.6+0x3bfb2)
# |  #6 0x00007fa5db644472 abort (/lib/x86_64-linux-gnu/libc.so.6+0x26472)
# |  #7 0x00007fa5db644395 (/lib/x86_64-linux-gnu/libc.so.6+0x26395)
# |  #8 0x00007fa5db652ec2 (/lib/x86_64-linux-gnu/libc.so.6+0x34ec2)
# |  #9 0x000055b1ebb7ea06 llvm::DAGTypeLegalizer::SoftPromoteHalfOperand(llvm::SDNode*, unsigned int) LegalizeFloatTypes.cpp:0:0
# | #10 0x000055b1ebadd02c llvm::DAGTypeLegalizer::run() LegalizeTypes.cpp:0:0
# | #11 0x000055b1ebae2114 llvm::SelectionDAG::LegalizeTypes() (/b/ml-opt-rel-x86-64-b1/build/bin/llc+0x7c3d114)
# | #12 0x000055b1ebac8d68 llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/b/ml-opt-rel-x86-64-b1/build/bin/llc+0x7c23d68)
# | #13 0x000055b1ebac7861 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/b/ml-opt-rel-x86-64-b1/build/bin/llc+0x7c22861)
# | #14 0x000055b1ebac4c90 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/b/ml-opt-rel-x86-64-b1/build/bin/llc+0x7c1fc90)
# | #15 0x000055b1ebac25b0 llvm::SelectionDAGISelLegacy::runOnMachineFunction(llvm::MachineFunction&) (/b/ml-opt-rel-x86-64-b1/build/bin/llc+0x7c1d5b0)
# | #16 0x000055b1ead244a3 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/b/ml-opt-rel-x86-64-b1/build/bin/llc+0x6e7f4a3)
# | #17 0x000055b1eb27eeb5 llvm::FPPassManager::runOnFunction(llvm::Function&) (/b/ml-opt-rel-x86-64-b1/build/bin/llc+0x73d9eb5)
# | #18 0x000055b1eb286d42 llvm::FPPassManager::runOnModule(llvm::Module&) (/b/ml-opt-rel-x86-64-b1/build/bin/llc+0x73e1d42)
# | #19 0x000055b1eb27f926 llvm::legacy::PassManagerImpl::run(llvm::Module&) (/b/ml-opt-rel-x86-64-b1/build/bin/llc+0x73da926)
# | #20 0x000055b1e8c50669 compileModule(char**, llvm::LLVMContext&) llc.cpp:0:0
# | #21 0x000055b1e8c4db2d main (/b/ml-opt-rel-x86-64-b1/build/bin/llc+0x4da8b2d)
# | #22 0x00007fa5db64524a (/lib/x86_64-linux-gnu/libc.so.6+0x2724a)
# | #23 0x00007fa5db645305 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x27305)
# | #24 0x000055b1e8c495e1 _start (/b/ml-opt-rel-x86-64-b1/build/bin/llc+0x4da45e1)
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /b/ml-opt-rel-x86-64-b1/build/bin/FileCheck /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/RISCV/rv64-stackmap.ll
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /b/ml-opt-rel-x86-64-b1/build/bin/FileCheck /b/ml-opt-rel-x86-64-b1/llvm-project/llvm/test/CodeGen/RISCV/rv64-stackmap.ll
# `-----------------------------
# error: command failed with exit status: 2

--
...

```

</details>

https://github.com/llvm/llvm-project/pull/165922


More information about the llvm-commits mailing list