[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: Windows-->
# :window: Windows x64 Test Results
* 140062 tests passed
* 3722 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
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=0 -mtriple=amdgpu9.00-amd-amdhsa -simplify-mir -stop-after=finalize-isel -verify-machineinstrs < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\call-defs-mode-register.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=SDAG C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\call-defs-mode-register.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -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: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=SDAG 'C:\_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
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=1 -mtriple=amdgpu9.00-amd-amdhsa -simplify-mir -stop-after=finalize-isel -verify-machineinstrs < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\call-defs-mode-register.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GISEL C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\call-defs-mode-register.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -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: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GISEL 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\call-defs-mode-register.ll'
# .---command stderr------------
# | C:\_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: C:\_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
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -mtriple=amdgpu-- -amdgpu-codegenprepare -S < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\codegen-prepare-addrspacecast-non-null.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=OPT C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\codegen-prepare-addrspacecast-non-null.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -mtriple=amdgpu-- -amdgpu-codegenprepare -S
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=OPT 'C:\_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
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu9.00-amd-amdhsa < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\codegen-prepare-addrspacecast-non-null.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\codegen-prepare-addrspacecast-non-null.ll --check-prefixes=ASM,DAGISEL-ASM
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgpu9.00-amd-amdhsa
# 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\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
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu9.00-amd-amdhsa -global-isel < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\codegen-prepare-addrspacecast-non-null.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\codegen-prepare-addrspacecast-non-null.ll --check-prefixes=ASM,GISEL-ASM
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -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)
# |
# | Assertion failed: false && "CSEInfo is not consistent. Likely missing calls to " "observer on mutations.", file C:\_work\llvm-project\llvm-project\llvm\lib\CodeGen\GlobalISel\Combiner.cpp, line 347
# | 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=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'
# | Exception Code: 0xC000001D
# | #0 0x00007ff7eb674536 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2f14536)
# | #1 0x00007ffabc96bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# | #2 0x00007ffabc96cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# | #3 0x00007ffabc96e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# | #4 0x00007ffabc96e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# | #5 0x00007ff7ebbe857e (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x348857e)
# | #6 0x00007ff7e989cb6a (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x113cb6a)
# | #7 0x00007ff7e92ef929 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xb8f929)
# | #8 0x00007ff7e8cb41b0 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x5541b0)
# | #9 0x00007ff7eaa80586 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2320586)
# | #10 0x00007ff7e8cb5240 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x555240)
# | #11 0x00007ff7e876545c (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x545c)
# | #12 0x00007ff7ed27e540 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4b1e540)
# | #13 0x00007ffac53e4cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #14 0x00007ffad171edfb (C:\Windows\SYSTEM32\ntdll.dll+0x7edfb)
# `-----------------------------
# 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\AMDGPU\codegen-prepare-addrspacecast-non-null.ll' --check-prefixes=ASM,GISEL-ASM
# .---command stderr------------
# | C:\_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: C:\_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
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=0 -mtriple=amdgpu8.03-amd-amdhsa -o - -amdgpu-enable-lower-module-lds=false C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\lds-global-non-entry-func.ll 2> C:\_work\llvm-project\llvm-project\build\test\CodeGen\AMDGPU\Output\lds-global-non-entry-func.ll.tmp | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GFX8,GFX8-SDAG C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\lds-global-non-entry-func.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=0 -mtriple=amdgpu8.03-amd-amdhsa -o - -amdgpu-enable-lower-module-lds=false 'C:\_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: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GFX8,GFX8-SDAG 'C:\_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
c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=ERR C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\lds-global-non-entry-func.ll < C:\_work\llvm-project\llvm-project\build\test\CodeGen\AMDGPU\Output\lds-global-non-entry-func.ll.tmp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=ERR 'C:\_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
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=1 -mtriple=amdgpu8.03-amd-amdhsa -o - -amdgpu-enable-lower-module-lds=false C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\lds-global-non-entry-func.ll 2> C:\_work\llvm-project\llvm-project\build\test\CodeGen\AMDGPU\Output\lds-global-non-entry-func.ll.tmp | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GFX8,GFX8-GISEL C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\lds-global-non-entry-func.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=1 -mtriple=amdgpu8.03-amd-amdhsa -o - -amdgpu-enable-lower-module-lds=false 'C:\_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: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GFX8,GFX8-GISEL 'C:\_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
c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=ERR C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\lds-global-non-entry-func.ll < C:\_work\llvm-project\llvm-project\build\test\CodeGen\AMDGPU\Output\lds-global-non-entry-func.ll.tmp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=ERR 'C:\_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
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=0 -mtriple=amdgpu9.00-amd-amdhsa -o - -amdgpu-enable-lower-module-lds=false C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\lds-global-non-entry-func.ll 2> C:\_work\llvm-project\llvm-project\build\test\CodeGen\AMDGPU\Output\lds-global-non-entry-func.ll.tmp | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GFX9,GFX9-SDAG C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\lds-global-non-entry-func.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=0 -mtriple=amdgpu9.00-amd-amdhsa -o - -amdgpu-enable-lower-module-lds=false 'C:\_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: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GFX9,GFX9-SDAG 'C:\_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
c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=ERR C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\lds-global-non-entry-func.ll < C:\_work\llvm-project\llvm-project\build\test\CodeGen\AMDGPU\Output\lds-global-non-entry-func.ll.tmp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=ERR 'C:\_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
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=1 -mtriple=amdgpu9.00-amd-amdhsa -o - -amdgpu-enable-lower-module-lds=false C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\lds-global-non-entry-func.ll 2> C:\_work\llvm-project\llvm-project\build\test\CodeGen\AMDGPU\Output\lds-global-non-entry-func.ll.tmp | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=GFX9,GFX9-GISEL C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\lds-global-non-entry-func.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=1 -mtriple=amdgpu9.00-amd-amdhsa -o - -amdgpu-enable-lower-module-lds=false 'C:\_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: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=GFX9,GFX9-GISEL 'C:\_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
c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=ERR C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\lds-global-non-entry-func.ll < C:\_work\llvm-project\llvm-project\build\test\CodeGen\AMDGPU\Output\lds-global-non-entry-func.ll.tmp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=ERR 'C:\_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
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=0 -mtriple=amdgpu9.00-mesa-mesa3d < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\lds-global-non-entry-func.ll 2> C:\_work\llvm-project\llvm-project\build\test\CodeGen\AMDGPU\Output\lds-global-non-entry-func.ll.tmp | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=CHECK,SDAG C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\lds-global-non-entry-func.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=0 -mtriple=amdgpu9.00-mesa-mesa3d
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=CHECK,SDAG 'C:\_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
c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=ERR C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\lds-global-non-entry-func.ll < C:\_work\llvm-project\llvm-project\build\test\CodeGen\AMDGPU\Output\lds-global-non-entry-func.ll.tmp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=ERR 'C:\_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
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=1 -mtriple=amdgpu9.00-mesa-mesa3d < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\lds-global-non-entry-func.ll 2> C:\_work\llvm-project\llvm-project\build\test\CodeGen\AMDGPU\Output\lds-global-non-entry-func.ll.tmp | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=CHECK,GISEL C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\lds-global-non-entry-func.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=1 -mtriple=amdgpu9.00-mesa-mesa3d
# .---redirected output from 'C:\_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:
# | %8:_(f32) = G_FCONSTANT float 0.000000e+00
# |
# | Assertion failed: false && "CSEInfo is not consistent. Likely missing calls to " "observer on mutations.", file C:\_work\llvm-project\llvm-project\llvm\lib\CodeGen\GlobalISel\Combiner.cpp, line 347
# | 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 -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'
# | Exception Code: 0xC000001D
# | #0 0x00007ff7eb674536 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2f14536)
# | #1 0x00007ffabc96bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# | #2 0x00007ffabc96cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# | #3 0x00007ffabc96e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# | #4 0x00007ffabc96e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# | #5 0x00007ff7ebbe857e (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x348857e)
# | #6 0x00007ff7e989cb6a (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x113cb6a)
# | #7 0x00007ff7e92ef929 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xb8f929)
# | #8 0x00007ff7e8cb41b0 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x5541b0)
# | #9 0x00007ff7eaa80586 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2320586)
# | #10 0x00007ff7e8cb5240 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x555240)
# | #11 0x00007ff7e876545c (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x545c)
# | #12 0x00007ff7ed27e540 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4b1e540)
# | #13 0x00007ffac53e4cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #14 0x00007ffad171edfb (C:\Windows\SYSTEM32\ntdll.dll+0x7edfb)
# `-----------------------------
# note: command had no output on stdout or stderr
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=CHECK,GISEL 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\lds-global-non-entry-func.ll'
# .---redirected output from 'C:\_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:
# | %8:_(f32) = G_FCONSTANT float 0.000000e+00
# |
# | Assertion failed: false && "CSEInfo is not consistent. Likely missing calls to " "observer on mutations.", file C:\_work\llvm-project\llvm-project\llvm\lib\CodeGen\GlobalISel\Combiner.cpp, line 347
# | 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 -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'
# | Exception Code: 0xC000001D
# | #0 0x00007ff7eb674536 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2f14536)
# | #1 0x00007ffabc96bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# | #2 0x00007ffabc96cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# | #3 0x00007ffabc96e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# | #4 0x00007ffabc96e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# | #5 0x00007ff7ebbe857e (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x348857e)
# | #6 0x00007ff7e989cb6a (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x113cb6a)
# | #7 0x00007ff7e92ef929 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xb8f929)
# | #8 0x00007ff7e8cb41b0 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x5541b0)
# | #9 0x00007ff7eaa80586 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2320586)
# | #10 0x00007ff7e8cb5240 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x555240)
# | #11 0x00007ff7e876545c (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x545c)
# | #12 0x00007ff7ed27e540 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4b1e540)
# | #13 0x00007ffac53e4cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #14 0x00007ffad171edfb (C:\Windows\SYSTEM32\ntdll.dll+0x7edfb)
# `-----------------------------
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=CHECK,GISEL C:\_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: 2
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=0 -mtriple=amdgpu7.00--amdhsa < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\trap.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=GCN -check-prefix=HSA-TRAP C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\trap.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=0 -mtriple=amdgpu7.00--amdhsa
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=GCN -check-prefix=HSA-TRAP 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\trap.ll'
# note: command had no output on stdout or stderr
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=1 -mtriple=amdgpu7.00--amdhsa < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\trap.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=GCN -check-prefix=HSA-TRAP C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\trap.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=1 -mtriple=amdgpu7.00--amdhsa
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=GCN -check-prefix=HSA-TRAP 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\trap.ll'
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=0 -mtriple=amdgpu7.00--amdhsa -mattr=+trap-handler < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\trap.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=GCN -check-prefix=HSA-TRAP C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\trap.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=0 -mtriple=amdgpu7.00--amdhsa -mattr=+trap-handler
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=GCN -check-prefix=HSA-TRAP 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\trap.ll'
# note: command had no output on stdout or stderr
# RUN: at line 5
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=1 -mtriple=amdgpu7.00--amdhsa -mattr=+trap-handler < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\trap.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=GCN -check-prefix=HSA-TRAP C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\trap.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=1 -mtriple=amdgpu7.00--amdhsa -mattr=+trap-handler
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=GCN -check-prefix=HSA-TRAP 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\trap.ll'
# note: command had no output on stdout or stderr
# RUN: at line 6
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=0 -mtriple=amdgpu7.00--amdhsa -mattr=-trap-handler < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\trap.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=GCN -check-prefix=NO-HSA-TRAP C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\trap.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -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: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=GCN -check-prefix=NO-HSA-TRAP 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\trap.ll'
# note: command had no output on stdout or stderr
# RUN: at line 7
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -global-isel=1 -mtriple=amdgpu7.00--amdhsa -mattr=-trap-handler < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\trap.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=GCN -check-prefix=NO-HSA-TRAP C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\trap.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -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
# |
# | Assertion failed: false && "CSEInfo is not consistent. Likely missing calls to " "observer on mutations.", file C:\_work\llvm-project\llvm-project\llvm\lib\CodeGen\GlobalISel\Combiner.cpp, line 347
# | 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 -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'
# | Exception Code: 0xC000001D
# | #0 0x00007ff7eb674536 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2f14536)
# | #1 0x00007ffabc96bb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# | #2 0x00007ffabc96cad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# | #3 0x00007ffabc96e4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# | #4 0x00007ffabc96e6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# | #5 0x00007ff7ebbe857e (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x348857e)
# | #6 0x00007ff7e989cb6a (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x113cb6a)
# | #7 0x00007ff7e92ef929 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xb8f929)
# | #8 0x00007ff7e8cb41b0 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x5541b0)
# | #9 0x00007ff7eaa80586 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2320586)
# | #10 0x00007ff7e8cb5240 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x555240)
# | #11 0x00007ff7e876545c (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x545c)
# | #12 0x00007ff7ed27e540 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4b1e540)
# | #13 0x00007ffac53e4cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #14 0x00007ffad171edfb (C:\Windows\SYSTEM32\ntdll.dll+0x7edfb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefix=GCN -check-prefix=NO-HSA-TRAP 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\trap.ll'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line: c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefix=GCN -check-prefix=NO-HSA-TRAP C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\trap.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/217258
More information about the llvm-commits
mailing list