[llvm] [AMDGPU] Propagate debug info to constant materialization instr (PR #178926)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 30 10:08:54 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 169028 tests passed
* 3022 tests skipped
* 2 tests failed

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

### LLVM
<details>
<summary>LLVM.DebugInfo/AMDGPU/debug-loc-copy.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1030 < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/DebugInfo/AMDGPU/debug-loc-copy.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=GCN /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/DebugInfo/AMDGPU/debug-loc-copy.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx1030
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=GCN /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/DebugInfo/AMDGPU/debug-loc-copy.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/DebugInfo/AMDGPU/debug-loc-copy.ll:17:13: error: GCN-NEXT: is not on the line after the previous match
# | ; GCN-NEXT: s_mov_b64 s[4:5], 0
# |             ^
# | <stdin>:18:2: note: 'next' match was here
# |  s_mov_b64 s[4:5], 0
# |  ^
# | <stdin>:15:16: note: previous match ended here
# | ; %bb.1: ; %lab
# |                ^
# | <stdin>:16:1: note: non-matching line after previous match is here
# | .Ltmp0:
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/DebugInfo/AMDGPU/debug-loc-copy.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |          .
# |          .
# |          .
# |         13: ; %bb.0: 
# |         14:  s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0) 
# |         15: ; %bb.1: ; %lab 
# |         16: .Ltmp0: 
# |         17:  .loc 0 12 1 prologue_end ; t.cpp:12:1 
# |         18:  s_mov_b64 s[4:5], 0 
# | next:17      !~~~~~~~~~~~~~~~~~~  error: match on wrong line
# |         19:  s_mov_b64 s[6:7], src_private_base 
# |         20:  s_mov_b32 s6, -1 
# |         21:  s_lshr_b32 s8, s32, 5 
# |         22:  s_cmp_lg_u32 s8, s6 
# |         23:  s_cselect_b32 s5, s7, s5 
# |          .
# |          .
# |          .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>LLVM.tools/llvm-objdump/ELF/AMDGPU/source-lines.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
sed -e "s,SRC_COMPDIR,/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/llvm-objdump/ELF/AMDGPU/Inputs,g" /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/llvm-objdump/ELF/AMDGPU/source-lines.ll > /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/tools/llvm-objdump/ELF/AMDGPU/Output/source-lines.ll.tmp.ll
# executed command: sed -e s,SRC_COMPDIR,/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/llvm-objdump/ELF/AMDGPU/Inputs,g /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/llvm-objdump/ELF/AMDGPU/source-lines.ll
# note: command had no output on stdout or stderr
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -filetype=obj -O0 -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/tools/llvm-objdump/ELF/AMDGPU/Output/source-lines.ll.tmp.o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/tools/llvm-objdump/ELF/AMDGPU/Output/source-lines.ll.tmp.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx802 -filetype=obj -O0 -o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/tools/llvm-objdump/ELF/AMDGPU/Output/source-lines.ll.tmp.o /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/tools/llvm-objdump/ELF/AMDGPU/Output/source-lines.ll.tmp.ll
# note: command had no output on stdout or stderr
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-objdump --triple=amdgcn-amd-amdhsa --mcpu=gfx802 -d -l /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/tools/llvm-objdump/ELF/AMDGPU/Output/source-lines.ll.tmp.o | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=LINE /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/tools/llvm-objdump/ELF/AMDGPU/Output/source-lines.ll.tmp.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llvm-objdump --triple=amdgcn-amd-amdhsa --mcpu=gfx802 -d -l /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/tools/llvm-objdump/ELF/AMDGPU/Output/source-lines.ll.tmp.o
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=LINE /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/tools/llvm-objdump/ELF/AMDGPU/Output/source-lines.ll.tmp.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/tools/llvm-objdump/ELF/AMDGPU/Output/source-lines.ll.tmp.ll:12:9: error: LINE: expected string not found in input
# | ; LINE: ; {{.*}}source-lines.cl:2
# |         ^
# | <stdin>:23:25: note: scanning from here
# |  v_mov_b32_e32 v0, 0x777 // 000000000040: 7E0002FF 00000777
# |                         ^
# | <stdin>:25:103: note: possible intended match here
# | ; /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/llvm-objdump/ELF/AMDGPU/Inputs/source-lines.cl:3
# |                                                                                                       ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/tools/llvm-objdump/ELF/AMDGPU/Output/source-lines.ll.tmp.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |            18:  v_mov_b32_e32 v0, s6 // 000000000028: 7E000206 
# |            19:  buffer_store_dword v0, off, s[0:3], s33 offset:4 // 00000000002C: E0700004 21000000 
# |            20:  v_mov_b32_e32 v0, s4 // 000000000034: 7E000204 
# |            21:  buffer_store_dword v0, off, s[0:3], s33 // 000000000038: E0700000 21000000 
# |            22: ; /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/llvm-objdump/ELF/AMDGPU/Inputs/source-lines.cl:2 
# |            23:  v_mov_b32_e32 v0, 0x777 // 000000000040: 7E0002FF 00000777 
# | check:12'0                             X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |            24:  buffer_store_dword v0, off, s[0:3], s33 offset:8 // 000000000048: E0700008 21000000 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            25: ; /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/llvm-objdump/ELF/AMDGPU/Inputs/source-lines.cl:3 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:12'1                                                                                                           ?                      possible intended match
# |            26:  v_mov_b32_e32 v0, 0x888 // 000000000050: 7E0002FF 00000888 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            27:  buffer_store_dword v0, off, s[0:3], s33 offset:12 // 000000000058: E070000C 21000000 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            28: ; /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/llvm-objdump/ELF/AMDGPU/Inputs/source-lines.cl:4 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            29:  buffer_load_dword v0, off, s[0:3], s33 offset:8 // 000000000060: E0500008 21000000 
# | check:12'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            30:  buffer_load_dword v1, off, s[0:3], s33 offset:12 // 000000000068: E050000C 21000100 
# | check:12'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/178926


More information about the llvm-commits mailing list