[llvm] [LoongArch] Fold conditional branches with constant conditions (PR #185161)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 7 00:07:15 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 131916 tests passed
* 2984 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.CodeGen/LoongArch/jr-without-ra.ll</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe --mtriple=loongarch64 -mattr=+d < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\LoongArch\jr-without-ra.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\LoongArch\jr-without-ra.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' --mtriple=loongarch64 -mattr=+d
# .---command stderr------------
# | Assertion failed: (*SI)->isEHPad() && "Bad CFG", file C:\_work\llvm-project\llvm-project\llvm\lib\CodeGen\BranchFolding.cpp, line 1683
# | 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=loongarch64 -mattr=+d
# | 1. Running pass 'Function Pass Manager' on module '<stdin>'.
# | 2. Running pass 'Control Flow Optimizer' on function '@jr_without_ra'
# | Exception Code: 0xC000001D
# | #0 0x00007ff7eab4f136 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2cef136)
# | #1 0x00007fffd543bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# | #2 0x00007fffd543cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# | #3 0x00007fffd543e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# | #4 0x00007fffd543e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# | #5 0x00007ff7e919425c (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x133425c)
# | #6 0x00007ff7e918cdcb (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x132cdcb)
# | #7 0x00007ff7e918b6db (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x132b6db)
# | #8 0x00007ff7e9196e44 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1336e44)
# | #9 0x00007ff7e88a4923 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xa44923)
# | #10 0x00007ff7e83176e9 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4b76e9)
# | #11 0x00007ff7e832017d (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4c017d)
# | #12 0x00007ff7e8318368 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4b8368)
# | #13 0x00007ff7e7e67908 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x7908)
# | #14 0x00007ff7e7e64b76 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4b76)
# | #15 0x00007ff7ec614af0 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x47b4af0)
# | #16 0x00007fffda344cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #17 0x00007fffe5c3edcb (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\LoongArch\jr-without-ra.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\LoongArch\jr-without-ra.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/185161
More information about the llvm-commits
mailing list