[llvm] [AMDGPU] Prevent clauses with incompatible scopes on gfx1250-strict (PR #218788)

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 26 00:05:12 PDT 2026


github-actions[bot] wrote:

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

* 140412 tests passed
* 3723 tests skipped
* 1 test failed

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

### LLVM
<details>
<summary>LLVM.CodeGen/AMDGPU/hard-clauses-gfx1250.mir</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu12.00 -verify-machineinstrs -run-pass si-insert-hard-clauses C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\hard-clauses-gfx1250.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\hard-clauses-gfx1250.mir -check-prefixes=GFX12,GFX1200
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgpu12.00 -verify-machineinstrs -run-pass si-insert-hard-clauses 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\hard-clauses-gfx1250.mir' -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\AMDGPU\hard-clauses-gfx1250.mir' -check-prefixes=GFX12,GFX1200
# note: command had no output on stdout or stderr
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu12.50 -run-pass si-insert-hard-clauses C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\hard-clauses-gfx1250.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\hard-clauses-gfx1250.mir -check-prefixes=GFX12,GFX1250
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgpu12.50 -run-pass si-insert-hard-clauses 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\hard-clauses-gfx1250.mir' -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\AMDGPU\hard-clauses-gfx1250.mir' -check-prefixes=GFX12,GFX1250
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -mtriple=amdgpu12.50s -run-pass si-insert-hard-clauses C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\hard-clauses-gfx1250.mir -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\hard-clauses-gfx1250.mir -check-prefixes=GFX12,GFX1250_STRICT
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=amdgpu12.50s -run-pass si-insert-hard-clauses 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\hard-clauses-gfx1250.mir' -o -
# .---command stderr------------
# | Assertion failed: ST->getGeneration() != AMDGPUSubtarget::GFX12 || !ST->hasGFX1250Insts(), file C:\_work\llvm-project\llvm-project\llvm\lib\Target\AMDGPU\SIInsertHardClauses.cpp, line 197
# | 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=amdgpu12.50s -run-pass si-insert-hard-clauses C:\\_work\\llvm-project\\llvm-project\\llvm\\test\\CodeGen\\AMDGPU\\hard-clauses-gfx1250.mir -o -
# | 1.	Running pass 'Function Pass Manager' on module 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\hard-clauses-gfx1250.mir'.
# | 2.	Running pass 'SI Insert Hard Clauses' on function '@long_clause'
# | Exception Code: 0xC000001D
# |  #0 0x00007ff64f4caee6 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2efaee6)
# |  #1 0x00007ff9457fbb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |  #2 0x00007ff9457fcad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |  #3 0x00007ff9457fe4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# |  #4 0x00007ff9457fe6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# |  #5 0x00007ff64d7a25e9 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x11d25e9)
# |  #6 0x00007ff64d7a35e4 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x11d35e4)
# |  #7 0x00007ff64d12e859 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xb5e859)
# |  #8 0x00007ff64caf8280 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x528280)
# |  #9 0x00007ff64cb00afd (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x530afd)
# | #10 0x00007ff64caf9310 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x529310)
# | #11 0x00007ff64c5d55d6 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x55d6)
# | #12 0x00007ff64c5d2926 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2926)
# | #13 0x00007ff6510e55e0 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4b155e0)
# | #14 0x00007ff951584cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #15 0x00007ff95bbbedfb (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\hard-clauses-gfx1250.mir' -check-prefixes=GFX12,GFX1250_STRICT
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\hard-clauses-gfx1250.mir -check-prefixes=GFX12,GFX1250_STRICT
# `-----------------------------
# 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/218788


More information about the llvm-commits mailing list