[llvm] [AMDGPU] Enable CSE in the GlobalISel post-legalizer combiner (PR #217258)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 20 02:53:08 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 180920 tests passed
* 3707 tests skipped
* 4 tests failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.CodeGen/AMDGPU/call-defs-mode-register.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=0 -mtriple=amdgpu9.00-amd-amdhsa -simplify-mir -stop-after=finalize-isel -verify-machineinstrs < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/call-defs-mode-register.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=SDAG /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/call-defs-mode-register.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=0 -mtriple=amdgpu9.00-amd-amdhsa -simplify-mir -stop-after=finalize-isel -verify-machineinstrs
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=SDAG /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/call-defs-mode-register.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/llc -global-isel=1 -mtriple=amdgpu9.00-amd-amdhsa -simplify-mir -stop-after=finalize-isel -verify-machineinstrs < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/call-defs-mode-register.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=GISEL /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/call-defs-mode-register.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=1 -mtriple=amdgpu9.00-amd-amdhsa -simplify-mir -stop-after=finalize-isel -verify-machineinstrs
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=GISEL /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/call-defs-mode-register.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/call-defs-mode-register.ll:57:16: error: GISEL-NEXT: expected string not found in input
# | ; GISEL-NEXT: [[SI_PC_ADD_REL_OFFSET:%[0-9]+]]:ccr_sgpr_64 = SI_PC_ADD_REL_OFFSET target-flags(amdgpu-rel32-lo) @maybe_defs_mode, target-flags(amdgpu-rel32-hi) @maybe_defs_mode, implicit-def $scc
# | ^
# | <stdin>:143:36: note: scanning from here
# | $sgpr0_sgpr1_sgpr2_sgpr3 = COPY %1
# | ^
# | <stdin>:143:36: note: pattern attempts to capture variables: "SI_PC_ADD_REL_OFFSET"
# | $sgpr0_sgpr1_sgpr2_sgpr3 = COPY %1
# | ^
# | <stdin>:144:2: note: possible intended match here
# | %2:sreg_64 = SI_PC_ADD_REL_OFFSET target-flags(amdgpu-rel32-lo) @maybe_defs_mode, target-flags(amdgpu-rel32-hi) @maybe_defs_mode, implicit-def $scc
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/call-defs-mode-register.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 138: sgprForEXECCopy: '$sgpr100_sgpr101'
# | 139: dynamicVGPRBlockSize: 0
# | 140: body: |
# | 141: bb.1 (%ir-block.0):
# | 142: %1:sgpr_128 = COPY $sgpr0_sgpr1_sgpr2_sgpr3
# | 143: $sgpr0_sgpr1_sgpr2_sgpr3 = COPY %1
# | next:57'0 { search range start (exclusive)
# | next:57'1 error: no match found in search range
# | next:57'2 pattern attempts to capture variables: "SI_PC_ADD_REL_OFFSET"
# | 144: %2:sreg_64 = SI_PC_ADD_REL_OFFSET target-flags(amdgpu-rel32-lo) @maybe_defs_mode, target-flags(amdgpu-rel32-hi) @maybe_defs_mode, implicit-def $scc
# | next:57'3 ? possible intended match
# | 145: %0:ccr_sgpr_64 = COPY %2
# | 146: SI_TCRETURN %0, @maybe_defs_mode, 0, csr_amdgpu, implicit $sgpr0_sgpr1_sgpr2_sgpr3
# | 147: ...
# | 148: ---
# | 149: name: asm_changes_mode
# | next:57'4 } search range end (exclusive)
# | 150: alignment: 4
# | 151: legalized: true
# | 152: regBankSelected: true
# | 153: selected: true
# | 154: tracksRegLiveness: true
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.CodeGen/AMDGPU/codegen-prepare-addrspacecast-non-null.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -mtriple=amdgpu-- -amdgpu-codegenprepare -S < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/codegen-prepare-addrspacecast-non-null.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=OPT /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/codegen-prepare-addrspacecast-non-null.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -mtriple=amdgpu-- -amdgpu-codegenprepare -S
# 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=OPT /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/codegen-prepare-addrspacecast-non-null.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/llc -mtriple=amdgpu9.00-amd-amdhsa < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/codegen-prepare-addrspacecast-non-null.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/codegen-prepare-addrspacecast-non-null.ll --check-prefixes=ASM,DAGISEL-ASM
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgpu9.00-amd-amdhsa
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/codegen-prepare-addrspacecast-non-null.ll --check-prefixes=ASM,DAGISEL-ASM
# note: command had no output on stdout or stderr
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgpu9.00-amd-amdhsa -global-isel < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/codegen-prepare-addrspacecast-non-null.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/codegen-prepare-addrspacecast-non-null.ll --check-prefixes=ASM,GISEL-ASM
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgpu9.00-amd-amdhsa -global-isel
# .---command stderr------------
# | CSEMap mismatch, InstrMapping has MIs without corresponding Nodes in CSEMap:
# | %17:_(s64) = G_ZEXT %16:_(i32)
# |
# | llc: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/GlobalISel/Combiner.cpp:347: bool llvm::Combiner::combineMachineInstrs(): Assertion `false && "CSEInfo is not consistent. Likely missing calls to " "observer on mutations."' 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: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgpu9.00-amd-amdhsa -global-isel
# | 1. Running pass 'CallGraph Pass Manager' on module '<stdin>'.
# | 2. Running pass 'AMDGPUPostLegalizerCombiner' on function '@cast_private_to_flat_to_global'
# | #0 0x00000000087ec7cb llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:931:13
# | #1 0x00000000087e9691 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# | #2 0x00000000087ed5eb SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:474:38
# | #3 0x00007a661b454330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# | #4 0x00007a661b4adb2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# | #5 0x00007a661b45427e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# | #6 0x00007a661b4378ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# | #7 0x00007a661b43781b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# | #8 0x00007a661b44a517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# | #9 0x0000000008edbdb6 (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc+0x8edbdb6)
# | #10 0x00000000057c19fa (anonymous namespace)::AMDGPUPostLegalizerCombiner::runOnMachineFunction(llvm::MachineFunction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp:515:15
# | #11 0x0000000007483709 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:99:7
# | #12 0x0000000007a17330 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
# | #13 0x0000000006f43ec5 RunPassOnSCC /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:180:25
# | #14 0x0000000006f43ec5 RunAllPassesOnSCC /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:468:9
# | #15 0x0000000006f43ec5 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:533:18
# | #16 0x0000000007a18096 runOnModule /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
# | #17 0x0000000007a18096 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:533:44
# | #18 0x000000000513c168 compileModule(char**, llvm::SmallVectorImpl<llvm::PassPlugin>&, llvm::LLVMContext&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/llc.cpp:886:17
# | #19 0x0000000005139143 main /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/llc.cpp:460:13
# | #20 0x00007a661b4391ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #21 0x00007a661b43928b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #22 0x00000000051382e5 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc+0x51382e5)
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/codegen-prepare-addrspacecast-non-null.ll --check-prefixes=ASM,GISEL-ASM
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/codegen-prepare-addrspacecast-non-null.ll:450:20: error: GISEL-ASM-LABEL: expected string not found in input
# | ; GISEL-ASM-LABEL: cast_private_to_flat_to_local:
# | ^
# | <stdin>:426:33: note: scanning from here
# | cast_private_to_flat_to_private: ; @cast_private_to_flat_to_private
# | ^
# | <stdin>:426:37: note: possible intended match here
# | cast_private_to_flat_to_private: ; @cast_private_to_flat_to_private
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/codegen-prepare-addrspacecast-non-null.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 421: ; MemoryBound: 0
# | 422: .text
# | 423: .globl cast_private_to_flat_to_private ; -- Begin function cast_private_to_flat_to_private
# | 424: .p2align 6
# | 425: .type cast_private_to_flat_to_private, at function
# | 426: cast_private_to_flat_to_private: ; @cast_private_to_flat_to_private
# | label:450'0 { search range start (exclusive)
# | label:450'1 error: no match found in search range
# | label:450'2 ? possible intended match
# | 427: ; %bb.0:
# | 428: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | 429: buffer_load_dword v0, v0, s[0:3], 0 offen glc
# | 430: s_waitcnt vmcnt(0)
# | 431: s_setpc_b64 s[30:31]
# | 432: .Lfunc_end12:
# | 433: .size cast_private_to_flat_to_private, .Lfunc_end12-cast_private_to_flat_to_private
# | 434: ; -- End function
# | 435: .set .Lcast_private_to_flat_to_private.num_vgpr, 1
# | 436: .set .Lcast_private_to_flat_to_private.num_agpr, 0
# | 437: .set .Lcast_private_to_flat_to_private.numbered_sgpr, 32
# | 438: .set .Lcast_private_to_flat_to_private.num_named_barrier,
# | label:450'3 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.CodeGen/AMDGPU/lds-global-non-entry-func.ll</summary>
```
Exit Code: 2
Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=0 -mtriple=amdgpu8.03-amd-amdhsa -o - -amdgpu-enable-lower-module-lds=false /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll 2> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/CodeGen/AMDGPU/Output/lds-global-non-entry-func.ll.tmp | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=GFX8,GFX8-SDAG /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=0 -mtriple=amdgpu8.03-amd-amdhsa -o - -amdgpu-enable-lower-module-lds=false /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=GFX8,GFX8-SDAG /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.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/FileCheck -check-prefix=ERR /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll < /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/CodeGen/AMDGPU/Output/lds-global-non-entry-func.ll.tmp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=ERR /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll
# note: command had no output on stdout or stderr
# RUN: at line 5
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=1 -mtriple=amdgpu8.03-amd-amdhsa -o - -amdgpu-enable-lower-module-lds=false /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll 2> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/CodeGen/AMDGPU/Output/lds-global-non-entry-func.ll.tmp | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=GFX8,GFX8-GISEL /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=1 -mtriple=amdgpu8.03-amd-amdhsa -o - -amdgpu-enable-lower-module-lds=false /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=GFX8,GFX8-GISEL /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll
# note: command had no output on stdout or stderr
# RUN: at line 6
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=ERR /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll < /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/CodeGen/AMDGPU/Output/lds-global-non-entry-func.ll.tmp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=ERR /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll
# note: command had no output on stdout or stderr
# RUN: at line 8
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=0 -mtriple=amdgpu9.00-amd-amdhsa -o - -amdgpu-enable-lower-module-lds=false /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll 2> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/CodeGen/AMDGPU/Output/lds-global-non-entry-func.ll.tmp | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=GFX9,GFX9-SDAG /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=0 -mtriple=amdgpu9.00-amd-amdhsa -o - -amdgpu-enable-lower-module-lds=false /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=GFX9,GFX9-SDAG /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll
# note: command had no output on stdout or stderr
# RUN: at line 9
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=ERR /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll < /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/CodeGen/AMDGPU/Output/lds-global-non-entry-func.ll.tmp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=ERR /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll
# note: command had no output on stdout or stderr
# RUN: at line 11
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=1 -mtriple=amdgpu9.00-amd-amdhsa -o - -amdgpu-enable-lower-module-lds=false /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll 2> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/CodeGen/AMDGPU/Output/lds-global-non-entry-func.ll.tmp | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=GFX9,GFX9-GISEL /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=1 -mtriple=amdgpu9.00-amd-amdhsa -o - -amdgpu-enable-lower-module-lds=false /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=GFX9,GFX9-GISEL /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll
# note: command had no output on stdout or stderr
# RUN: at line 12
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=ERR /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll < /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/CodeGen/AMDGPU/Output/lds-global-non-entry-func.ll.tmp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=ERR /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll
# note: command had no output on stdout or stderr
# RUN: at line 18
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=0 -mtriple=amdgpu9.00-mesa-mesa3d < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll 2> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/CodeGen/AMDGPU/Output/lds-global-non-entry-func.ll.tmp | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=CHECK,SDAG /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=0 -mtriple=amdgpu9.00-mesa-mesa3d
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=CHECK,SDAG /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll
# note: command had no output on stdout or stderr
# RUN: at line 19
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=ERR /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll < /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/CodeGen/AMDGPU/Output/lds-global-non-entry-func.ll.tmp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=ERR /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll
# note: command had no output on stdout or stderr
# RUN: at line 21
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=1 -mtriple=amdgpu9.00-mesa-mesa3d < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll 2> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/CodeGen/AMDGPU/Output/lds-global-non-entry-func.ll.tmp | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=CHECK,GISEL /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=1 -mtriple=amdgpu9.00-mesa-mesa3d
# .---redirected output from '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/CodeGen/AMDGPU/Output/lds-global-non-entry-func.ll.tmp'
# | warning: <unknown>:0:0: in function func_use_lds_global void (): local memory global used by non-kernel function
# |
# | CSEMap mismatch, InstrMapping has MIs without corresponding Nodes in CSEMap:
# | %9:_(p3) = G_IMPLICIT_DEF
# |
# | llc: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/GlobalISel/Combiner.cpp:347: bool llvm::Combiner::combineMachineInstrs(): Assertion `false && "CSEInfo is not consistent. Likely missing calls to " "observer on mutations."' 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: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=1 -mtriple=amdgpu9.00-mesa-mesa3d
# | 1. Running pass 'CallGraph Pass Manager' on module '<stdin>'.
# | 2. Running pass 'AMDGPUPostLegalizerCombiner' on function '@func_use_lds_global'
# | #0 0x00000000087ec7cb llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:931:13
# | #1 0x00000000087e9691 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# | #2 0x00000000087ed5eb SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:474:38
# | #3 0x00007a15251d0330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# | #4 0x00007a1525229b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# | #5 0x00007a15251d027e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# | #6 0x00007a15251b38ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# | #7 0x00007a15251b381b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# | #8 0x00007a15251c6517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# | #9 0x0000000008edbdb6 (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc+0x8edbdb6)
# | #10 0x00000000057c19fa (anonymous namespace)::AMDGPUPostLegalizerCombiner::runOnMachineFunction(llvm::MachineFunction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp:515:15
# | #11 0x0000000007483709 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:99:7
# | #12 0x0000000007a17330 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
# | #13 0x0000000006f43ec5 RunPassOnSCC /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:180:25
# | #14 0x0000000006f43ec5 RunAllPassesOnSCC /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:468:9
# | #15 0x0000000006f43ec5 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:533:18
# | #16 0x0000000007a18096 runOnModule /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
# | #17 0x0000000007a18096 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:533:44
# | #18 0x000000000513c168 compileModule(char**, llvm::SmallVectorImpl<llvm::PassPlugin>&, llvm::LLVMContext&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/llc.cpp:886:17
# | #19 0x0000000005139143 main /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/llc.cpp:460:13
# | #20 0x00007a15251b51ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #21 0x00007a15251b528b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #22 0x00000000051382e5 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc+0x51382e5)
# `-----------------------------
# note: command had no output on stdout or stderr
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=CHECK,GISEL /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll
# .---redirected output from '/home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/CodeGen/AMDGPU/Output/lds-global-non-entry-func.ll.tmp'
# | warning: <unknown>:0:0: in function func_use_lds_global void (): local memory global used by non-kernel function
# |
# | CSEMap mismatch, InstrMapping has MIs without corresponding Nodes in CSEMap:
# | %9:_(p3) = G_IMPLICIT_DEF
# |
# | llc: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/GlobalISel/Combiner.cpp:347: bool llvm::Combiner::combineMachineInstrs(): Assertion `false && "CSEInfo is not consistent. Likely missing calls to " "observer on mutations."' 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: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=1 -mtriple=amdgpu9.00-mesa-mesa3d
# | 1. Running pass 'CallGraph Pass Manager' on module '<stdin>'.
# | 2. Running pass 'AMDGPUPostLegalizerCombiner' on function '@func_use_lds_global'
# | #0 0x00000000087ec7cb llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:931:13
# | #1 0x00000000087e9691 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# | #2 0x00000000087ed5eb SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:474:38
# | #3 0x00007a15251d0330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# | #4 0x00007a1525229b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# | #5 0x00007a15251d027e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# | #6 0x00007a15251b38ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# | #7 0x00007a15251b381b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# | #8 0x00007a15251c6517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# | #9 0x0000000008edbdb6 (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc+0x8edbdb6)
# | #10 0x00000000057c19fa (anonymous namespace)::AMDGPUPostLegalizerCombiner::runOnMachineFunction(llvm::MachineFunction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp:515:15
# | #11 0x0000000007483709 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:99:7
# | #12 0x0000000007a17330 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
# | #13 0x0000000006f43ec5 RunPassOnSCC /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:180:25
# | #14 0x0000000006f43ec5 RunAllPassesOnSCC /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:468:9
# | #15 0x0000000006f43ec5 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:533:18
# | #16 0x0000000007a18096 runOnModule /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
# | #17 0x0000000007a18096 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:533:44
# | #18 0x000000000513c168 compileModule(char**, llvm::SmallVectorImpl<llvm::PassPlugin>&, llvm::LLVMContext&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/llc.cpp:886:17
# | #19 0x0000000005139143 main /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/llc.cpp:460:13
# | #20 0x00007a15251b51ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #21 0x00007a15251b528b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #22 0x00000000051382e5 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc+0x51382e5)
# `-----------------------------
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefixes=CHECK,GISEL /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/lds-global-non-entry-func.ll
# `-----------------------------
# error: command failed with exit status: 2
--
```
</details>
<details>
<summary>LLVM.CodeGen/AMDGPU/trap.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=0 -mtriple=amdgpu7.00--amdhsa < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/trap.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=GCN -check-prefix=HSA-TRAP /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/trap.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=0 -mtriple=amdgpu7.00--amdhsa
# 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 -check-prefix=HSA-TRAP /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/trap.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 -global-isel=1 -mtriple=amdgpu7.00--amdhsa < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/trap.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=GCN -check-prefix=HSA-TRAP /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/trap.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=1 -mtriple=amdgpu7.00--amdhsa
# 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 -check-prefix=HSA-TRAP /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/trap.ll
# note: command had no output on stdout or stderr
# RUN: at line 4
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=0 -mtriple=amdgpu7.00--amdhsa -mattr=+trap-handler < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/trap.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=GCN -check-prefix=HSA-TRAP /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/trap.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=0 -mtriple=amdgpu7.00--amdhsa -mattr=+trap-handler
# 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 -check-prefix=HSA-TRAP /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/trap.ll
# note: command had no output on stdout or stderr
# RUN: at line 5
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=1 -mtriple=amdgpu7.00--amdhsa -mattr=+trap-handler < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/trap.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=GCN -check-prefix=HSA-TRAP /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/trap.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=1 -mtriple=amdgpu7.00--amdhsa -mattr=+trap-handler
# 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 -check-prefix=HSA-TRAP /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/trap.ll
# note: command had no output on stdout or stderr
# RUN: at line 6
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=0 -mtriple=amdgpu7.00--amdhsa -mattr=-trap-handler < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/trap.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=GCN -check-prefix=NO-HSA-TRAP /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/trap.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=0 -mtriple=amdgpu7.00--amdhsa -mattr=-trap-handler
# .---command stderr------------
# | warning: <unknown>:0:0: in function hsa_debugtrap void (ptr addrspace(1)): debugtrap handler not supported
# |
# `-----------------------------
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=GCN -check-prefix=NO-HSA-TRAP /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/trap.ll
# note: command had no output on stdout or stderr
# RUN: at line 7
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=1 -mtriple=amdgpu7.00--amdhsa -mattr=-trap-handler < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/trap.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=GCN -check-prefix=NO-HSA-TRAP /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/trap.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=1 -mtriple=amdgpu7.00--amdhsa -mattr=-trap-handler
# .---command stderr------------
# | warning: <unknown>:0:0: in function hsa_debugtrap void (ptr addrspace(1)): debugtrap handler not supported
# |
# | CSEMap mismatch, InstrMapping has MIs without corresponding Nodes in CSEMap:
# | %25:_(p3) = G_CONSTANT i32 0
# |
# | llc: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/GlobalISel/Combiner.cpp:347: bool llvm::Combiner::combineMachineInstrs(): Assertion `false && "CSEInfo is not consistent. Likely missing calls to " "observer on mutations."' 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: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -global-isel=1 -mtriple=amdgpu7.00--amdhsa -mattr=-trap-handler
# | 1. Running pass 'CallGraph Pass Manager' on module '<stdin>'.
# | 2. Running pass 'AMDGPUPostLegalizerCombiner' on function '@non_entry_trap_no_unreachable'
# | #0 0x00000000087ec7cb llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:931:13
# | #1 0x00000000087e9691 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# | #2 0x00000000087ed5eb SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:474:38
# | #3 0x00007c8fac914330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# | #4 0x00007c8fac96db2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# | #5 0x00007c8fac91427e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# | #6 0x00007c8fac8f78ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# | #7 0x00007c8fac8f781b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# | #8 0x00007c8fac90a517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# | #9 0x0000000008edbdb6 (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc+0x8edbdb6)
# | #10 0x00000000057c19fa (anonymous namespace)::AMDGPUPostLegalizerCombiner::runOnMachineFunction(llvm::MachineFunction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp:515:15
# | #11 0x0000000007483709 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:99:7
# | #12 0x0000000007a17330 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
# | #13 0x0000000006f43ec5 RunPassOnSCC /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:180:25
# | #14 0x0000000006f43ec5 RunAllPassesOnSCC /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:468:9
# | #15 0x0000000006f43ec5 (anonymous namespace)::CGPassManager::runOnModule(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Analysis/CallGraphSCCPass.cpp:533:18
# | #16 0x0000000007a18096 runOnModule /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
# | #17 0x0000000007a18096 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:533:44
# | #18 0x000000000513c168 compileModule(char**, llvm::SmallVectorImpl<llvm::PassPlugin>&, llvm::LLVMContext&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/llc.cpp:886:17
# | #19 0x0000000005139143 main /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/llc.cpp:460:13
# | #20 0x00007c8fac8f91ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #21 0x00007c8fac8f928b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #22 0x00000000051382e5 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc+0x51382e5)
# `-----------------------------
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix=GCN -check-prefix=NO-HSA-TRAP /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/trap.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/trap.ll:100:14: error: GCN-LABEL: expected string not found in input
# | ; GCN-LABEL: {{^}}non_entry_trap:
# | ^
# | <stdin>:194:6: note: scanning from here
# | trap: ; @trap
# | ^
# | <stdin>:208:17: note: possible intended match here
# | .size trap, .Lfunc_end2-trap
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/trap.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 189: ; COMPUTE_PGM_RSRC2:TIDIG_COMP_CNT: 2
# | 190: .text
# | 191: .globl trap ; -- Begin function trap
# | 192: .p2align 8
# | 193: .type trap, at function
# | 194: trap: ; @trap
# | label:100'0 { search range start (exclusive)
# | label:100'1 error: no match found in search range
# | 195: ; %bb.0:
# | 196: s_load_dwordx2 s[0:1], s[8:9], 0x0
# | 197: s_add_i32 s12, s12, s17
# | 198: s_mov_b32 flat_scratch_lo, s13
# | 199: s_lshr_b32 flat_scratch_hi, s12, 8
# | 200: v_mov_b32_e32 v2, 1
# | 201: s_waitcnt lgkmcnt(0)
# | 202: v_mov_b32_e32 v0, s0
# | 203: v_mov_b32_e32 v1, s1
# | 204: flat_store_dword v[0:1], v2
# | 205: s_waitcnt vmcnt(0)
# | 206: s_endpgm
# | 207: .Lfunc_end2:
# | 208: .size trap, .Lfunc_end2-trap
# | label:100'2 ? possible intended match
# | 209: .section .rodata,"a", at progbits
# | 210: .p2align 6, 0x0
# | 211: .amdhsa_kernel trap
# | 212: .amdhsa_group_segment_fixed_size 0
# | 213: .amdhsa_private_segment_fixed_size 0
# | .
# | .
# | .
# | 263: ; NumVgprs: 3
# | 264: ; ScratchSize: 0
# | 265: ; MemoryBound: 0
# | 266: ; FloatMode: 240
# | 267: ; IeeeMode: 1
# | 268: ;
# | label:100'3 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# 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/217258
More information about the llvm-commits
mailing list