[llvm-branch-commits] [llvm] [CodeGen] Lower FREEZE of a defined value to COPY (PR #240470)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Nov 9 11:53:53 PST 2026


github-actions[bot] wrote:

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

* 148161 tests passed
* 2301 tests skipped
* 1 test failed

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

### LLVM
<details>
<summary>LLVM.CodeGen/Hexagon/hwloop-ubsan-fallthrough.mir</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=hexagon -run-pass=hwloops C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\Hexagon\hwloop-ubsan-fallthrough.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\Hexagon\hwloop-ubsan-fallthrough.mir
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=hexagon -run-pass=hwloops 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\Hexagon\hwloop-ubsan-fallthrough.mir' -o -
# .---command stderr------------
# | 
# | # Machine code for function strlen: IsSSA, TracksLiveness
# | Function Live Ins: $r0 in %5
# | 
# | bb.0.entry:
# |   successors: %bb.1(0x80000000); %bb.1(100.00%)
# |   liveins: $r0
# |   %5:intregs = COPY $r0
# |   %0:intregs = A2_subri -1, %5:intregs
# |   %6:intregs = A2_tfrsi 0
# | 
# | bb.1.loop:
# | ; predecessors: %bb.0, %bb.2
# |   successors: %bb.4(0x40000000), %bb.2(0x40000000); %bb.4(50.00%), %bb.2(50.00%)
# | 
# |   %1:intregs = PHI %5:intregs, %bb.0, %4:intregs, %bb.2
# |   %2:intregs = PHI %6:intregs, %bb.0, %3:intregs, %bb.2
# |   %7:intregs = L2_loadrb_io %1:intregs, 0
# |   %8:predregs = C2_cmpeqi killed %7:intregs, 0
# |   J2_jumpt killed %8:predregs, %bb.4, implicit-def dead $pc
# |   J2_jump %bb.2, implicit-def dead $pc
# | 
# | bb.2.body:
# | ; predecessors: %bb.1
# |   successors: %bb.1(0x40000000), %bb.3(0x40000000); %bb.1(50.00%), %bb.3(50.00%)
# | 
# |   INLINEASM &"" [sideeffect] [attdialect]
# |   %3:intregs = A2_addi %2:intregs, 1
# |   %9:predregs = C2_cmpgtu %3:intregs, %0:intregs
# |   %4:intregs = A2_addi %1:intregs, 1
# |   J2_jumpf %9:predregs, %bb.1, implicit-def dead $pc
# | 
# | bb.3.trap:
# | ; predecessors: %bb.2
# | 
# |   PS_crash
# | 
# | bb.4.done:
# | ; predecessors: %bb.1
# | 
# |   $r0 = COPY %2:intregs
# |   PS_jmpret $r31, implicit-def dead $pc, implicit $r0
# | 
# | # End machine code for function strlen.
# | 
# | *** Bad machine code: Kill flag on virtual register ***
# | - function:    strlen
# | - basic block: %bb.1 loop (0x1eebb9620f0)
# | - instruction: %8:predregs = C2_cmpeqi killed %7:intregs, 0
# | - operand 1:   killed %7:intregs
# | 
# | *** Bad machine code: Kill flag on virtual register ***
# | - function:    strlen
# | - basic block: %bb.1 loop (0x1eebb9620f0)
# | - instruction: J2_jumpt killed %8:predregs, %bb.4, implicit-def dead $pc
# | - operand 0:   killed %8:predregs
# | LLVM ERROR: Found 2 machine code errors.
# | 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=hexagon -run-pass=hwloops C:\\_work\\llvm-project\\llvm-project\\llvm\\test\\CodeGen\\Hexagon\\hwloop-ubsan-fallthrough.mir -o -
# | Exception Code: 0xC000001D
# |  #0 0x00007ff7d1948ad6 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x18ad6)
# |  #1 0x00007ffd32b9bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |  #2 0x00007ffd32b9cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |  #3 0x00007ff7d194d81a (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1d81a)
# |  #4 0x00007ff7d1c399e4 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x3099e4)
# |  #5 0x00007ff7d1c3a0bc (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x30a0bc)
# |  #6 0x00007ff7d1b8eb63 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x25eb63)
# |  #7 0x00007ff7d1b8e0b8 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x25e0b8)
# |  #8 0x00007ff7d1b98ba6 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x268ba6)
# |  #9 0x00007ff7d1935f12 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x5f12)
# | #10 0x00007ff7d1931051 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x1051)
# | #11 0x00007ff7d66c72f0 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4d972f0)
# | #12 0x00007ffd3a9f4cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #13 0x00007ffd44fdedeb (C:\Windows\SYSTEM32\ntdll.dll+0x7edeb)
# `-----------------------------
# 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\Hexagon\hwloop-ubsan-fallthrough.mir'
# .---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\Hexagon\hwloop-ubsan-fallthrough.mir
# `-----------------------------
# 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/240470


More information about the llvm-branch-commits mailing list