[llvm] [AsmPrinter] Renumber basic blocks before printing (PR #186688)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 15 11:48:53 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 132301 tests passed
* 3009 tests skipped
* 5 tests failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.CodeGen/SPIRV/const-array-gep.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -O0 -mtriple=spirv64-unknown-unknown < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPIRV\const-array-gep.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPIRV\const-array-gep.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -O0 -mtriple=spirv64-unknown-unknown
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPIRV\const-array-gep.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPIRV\const-array-gep.ll:8:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: %17 = OpLabel
# | ^
# | <stdin>:22:61: note: scanning from here
# | %12 = OpFunction %3 None %4 ; -- Begin function _Z6kernelPi
# | ^
# | <stdin>:23:2: note: possible intended match here
# | %2 = OpLabel
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPIRV\const-array-gep.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 17: %7 = OpTypeInt 8 0
# | 18: %8 = OpTypePointer Generic %7
# | 19: %9 = OpTypeInt 64 0
# | 20: %10 = OpConstant %9 1
# | 21: %11 = OpConstantNull %8
# | 22: %12 = OpFunction %3 None %4 ; -- Begin function _Z6kernelPi
# | next:8'0 X error: no match found
# | 23: %2 = OpLabel
# | next:8'0 ~~~~~~~~~~~~~~
# | next:8'1 ? possible intended match
# | 24: %13 = OpBitcast %6 %11
# | next:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 25: %14 = OpInBoundsPtrAccessChain %6 %13 %10
# | next:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 26: %15 = OpConvertPtrToU %5 %14
# | next:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 27: %16 = OpBitcast %6 %11
# | next:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 28: OpStore %16 %15 Aligned 4
# | next:8'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.CodeGen/SPIRV/pointers/structured-buffer-access.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -verify-machineinstrs -O3 -mtriple=spirv1.6-unknown-vulkan1.3-compute C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPIRV\pointers\structured-buffer-access.ll -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPIRV\pointers\structured-buffer-access.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -verify-machineinstrs -O3 -mtriple=spirv1.6-unknown-vulkan1.3-compute 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPIRV\pointers\structured-buffer-access.ll' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPIRV\pointers\structured-buffer-access.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPIRV\pointers\structured-buffer-access.ll:32:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: %56 = OpLabel
# | ^
# | <stdin>:75:54: note: scanning from here
# | %42 = OpFunction %2 None %3 ; -- Begin function main
# | ^
# | <stdin>:76:2: note: possible intended match here
# | %1 = OpLabel
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPIRV\pointers\structured-buffer-access.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 70: %37 = OpConstantComposite %24 %36 %35 %34
# | 71: %38 = OpConstantComposite %22 %33 %32 %31 %34
# | 72: %39 = OpVariable %19 StorageBuffer
# | 73: %40 = OpVariable %16 StorageBuffer
# | 74: %41 = OpVariable %29 Input
# | 75: %42 = OpFunction %2 None %3 ; -- Begin function main
# | next:32'0 X error: no match found
# | 76: %1 = OpLabel
# | next:32'0 ~~~~~~~~~~~~~~
# | next:32'1 ? possible intended match
# | 77: %43 = OpVariable %27 Function %37
# | next:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 78: %44 = OpVariable %26 Function %38
# | next:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 79: %45 = OpCopyObject %19 %39
# | next:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 80: %46 = OpCopyObject %16 %40
# | next:32'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 81: %47 = OpLoad %4 %41
# | next:32'0 ~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.CodeGen/SPIRV/pointers/structured-buffer-vector-access.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -verify-machineinstrs -O3 -mtriple=spirv1.6-unknown-vulkan1.3-compute C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPIRV\pointers\structured-buffer-vector-access.ll -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPIRV\pointers\structured-buffer-vector-access.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -verify-machineinstrs -O3 -mtriple=spirv1.6-unknown-vulkan1.3-compute 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPIRV\pointers\structured-buffer-vector-access.ll' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPIRV\pointers\structured-buffer-vector-access.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPIRV\pointers\structured-buffer-vector-access.ll:19:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: %43 = OpLabel
# | ^
# | <stdin>:57:54: note: scanning from here
# | %33 = OpFunction %2 None %3 ; -- Begin function main
# | ^
# | <stdin>:58:2: note: possible intended match here
# | %1 = OpLabel
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\SPIRV\pointers\structured-buffer-vector-access.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 52: %28 = OpConstant %13 73
# | 53: %29 = OpConstantComposite %17 %28 %27 %26
# | 54: %30 = OpConstantComposite %15 %25 %24 %23 %26
# | 55: %31 = OpVariable %12 StorageBuffer
# | 56: %32 = OpVariable %10 StorageBuffer
# | 57: %33 = OpFunction %2 None %3 ; -- Begin function main
# | next:19'0 X error: no match found
# | 58: %1 = OpLabel
# | next:19'0 ~~~~~~~~~~~~~~
# | next:19'1 ? possible intended match
# | 59: %34 = OpVariable %20 Function %29
# | next:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 60: %35 = OpVariable %19 Function %30
# | next:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 61: %36 = OpCopyObject %12 %31
# | next:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 62: %37 = OpCopyObject %10 %32
# | next:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 63: %38 = OpAccessChain %7 %36 %21 %21
# | next:19'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.DebugInfo/COFF/pieces.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\llc.exe < C:\_work\llvm-project\llvm-project\llvm\test\DebugInfo\COFF\pieces.ll -experimental-debug-variable-locations=true | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\DebugInfo\COFF\pieces.ll --check-prefix=ASM
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -experimental-debug-variable-locations=true
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\DebugInfo\COFF\pieces.ll' --check-prefix=ASM
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\DebugInfo\COFF\pieces.ll:40:8: error: ASM: expected string not found in input
# | ; ASM: # %bb.2: # %for.body.preheader
# | ^
# | <stdin>:32:59: note: scanning from here
# | #DEBUG_VALUE: loop_csr:o <- [DW_OP_LLVM_fragment 32 32] 0
# | ^
# | <stdin>:43:1: note: possible intended match here
# | # %bb.1: # %for.body.preheader
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\DebugInfo\COFF\pieces.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 27: subq $40, %rsp
# | 28: .seh_stackalloc 40
# | 29: .seh_endprologue
# | 30: .Ltmp0:
# | 31: #DEBUG_VALUE: loop_csr:o <- [DW_OP_LLVM_fragment 0 32] 0
# | 32: #DEBUG_VALUE: loop_csr:o <- [DW_OP_LLVM_fragment 32 32] 0
# | check:40'0 X error: no match found
# | 33: #DEBUG_VALUE: loop_csr:o <- [DW_OP_LLVM_fragment 0 32] 0
# | check:40'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 34: #DEBUG_VALUE: loop_csr:o <- [DW_OP_LLVM_fragment 32 32] 0
# | check:40'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 35: .cv_loc 0 1 12 23 # t.c:12:23
# | check:40'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 36: movl $0, i(%rip)
# | check:40'0 ~~~~~~~~~~~~~~~~~~
# | 37: .cv_loc 0 1 12 17 # t.c:12:17
# | check:40'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 38: cmpl $0, n(%rip)
# | check:40'0 ~~~~~~~~~~~~~~~~~~
# | 39: .Ltmp1:
# | check:40'0 ~~~~~~~~
# | 40: .cv_loc 0 1 12 3 # t.c:12:3
# | check:40'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 41: jle .LBB0_3
# | check:40'0 ~~~~~~~~~~~~~
# | 42: .Ltmp2:
# | check:40'0 ~~~~~~~~
# | 43: # %bb.1: # %for.body.preheader
# | check:40'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:40'1 ? possible intended match
# | 44: #DEBUG_VALUE: loop_csr:o <- [DW_OP_LLVM_fragment 0 32] 0
# | check:40'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 45: #DEBUG_VALUE: loop_csr:o <- [DW_OP_LLVM_fragment 32 32] 0
# | check:40'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 46: xorl %edi, %edi
# | check:40'0 ~~~~~~~~~~~~~~~~~
# | 47: xorl %esi, %esi
# | check:40'0 ~~~~~~~~~~~~~~~~~
# | 48: .Ltmp3:
# | check:40'0 ~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.DebugInfo/X86/dbg-value-transfer-order.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\llc.exe < C:\_work\llvm-project\llvm-project\llvm\test\DebugInfo\X86\dbg-value-transfer-order.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\DebugInfo\X86\dbg-value-transfer-order.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\DebugInfo\X86\dbg-value-transfer-order.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\DebugInfo\X86\dbg-value-transfer-order.ll:27:10: error: CHECK: expected string not found in input
# | ; CHECK: .LBB0_4:
# | ^
# | <stdin>:16:8: note: scanning from here
# | f: # @f
# | ^
# | <stdin>:42:1: note: possible intended match here
# | .LBB0_2: # %if.end
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\DebugInfo\X86\dbg-value-transfer-order.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 11: .type 32;
# | 12: .endef
# | 13: .text
# | 14: .globl f # -- Begin function f
# | 15: .p2align 4
# | 16: f: # @f
# | check:27'0 X error: no match found
# | 17: .Lfunc_begin0:
# | check:27'0 ~~~~~~~~~~~~~~~
# | 18: .cv_func_id 0
# | check:27'0 ~~~~~~~~~~~~~~~
# | 19: .cv_file 1 "C:\\src\\llvm-project\\build\\t.c" "F80D0003FAF76554DFDEC6C95DA285CC" 1
# | check:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 20: .cv_loc 0 1 4 0 # t.c:4:0
# | check:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 21: .seh_proc f
# | check:27'0 ~~~~~~~~~~~~
# | .
# | .
# | .
# | 37: # %bb.1: # %while.body.preheader
# | check:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 38: movq %rdx, %rsi
# | check:27'0 ~~~~~~~~~~~~~~~~~
# | 39: movl %ecx, %edi
# | check:27'0 ~~~~~~~~~~~~~~~~~
# | 40: jmp .LBB0_3
# | check:27'0 ~~~~~~~~~~~~~
# | 41: .p2align 4
# | check:27'0 ~~~~~~~~~~~~
# | 42: .LBB0_2: # %if.end
# | check:27'0 ~~~~~~~~~~~~~~~~~~~
# | check:27'1 ? possible intended match
# | 43: # in Loop: Header=BB0_3 Depth=1
# | check:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 44: .Ltmp0:
# | check:27'0 ~~~~~~~~
# | 45: #DEBUG_VALUE: bit_offset <- $ecx
# | check:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 46: .cv_loc 0 1 8 28 # t.c:8:28
# | check:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 47: movl $1, %eax
# | check:27'0 ~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</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/186688
More information about the llvm-commits
mailing list