[llvm] [AMDGPU][SIInsertWaitcnts][NFC] Clean up loop (PR #179572)

via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 12 09:29:02 PST 2026


github-actions[bot] wrote:

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

* 130813 tests passed
* 2932 tests skipped
* 3 tests failed

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

### LLVM
<details>
<summary>LLVM.CodeGen/AMDGPU/async-buffer-loads.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=amdgcn -mcpu=gfx900 < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\async-buffer-loads.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\async-buffer-loads.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -global-isel=0 -mtriple=amdgcn -mcpu=gfx900
# 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\async-buffer-loads.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\async-buffer-loads.ll:17:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: s_waitcnt vmcnt(2)
# |               ^
# | <stdin>:26:21: note: scanning from here
# |  ; wait_asyncmark(1)
# |                     ^
# | <stdin>:27:2: note: possible intended match here
# |  s_waitcnt vmcnt(0)
# |  ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\async-buffer-loads.ll:44:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: s_waitcnt vmcnt(2)
# |               ^
# | <stdin>:76:21: note: scanning from here
# |  ; wait_asyncmark(1)
# |                     ^
# | <stdin>:77:2: note: possible intended match here
# |  s_waitcnt vmcnt(0)
# |  ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\async-buffer-loads.ll:72:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: s_waitcnt vmcnt(2)
# |               ^
# | <stdin>:127:21: note: scanning from here
# |  ; wait_asyncmark(1)
# |                     ^
# | <stdin>:128:2: note: possible intended match here
# |  s_waitcnt vmcnt(0)
# |  ^
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\async-buffer-loads.ll:100:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: s_waitcnt vmcnt(2)
# |               ^
# | <stdin>:178:21: note: scanning from here
# |  ; wait_asyncmark(1)
# |                     ^
# | <stdin>:179:2: note: possible intended match here
# |  s_waitcnt vmcnt(0)
# |  ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\async-buffer-loads.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |            21:  buffer_load_dword off, s[16:19], 0 lds 
# |            22:  ; asyncmark 
# |            23:  buffer_load_dword off, s[16:19], 0 offset:4 glc lds 
# |            24:  ; asyncmark 
# |            25:  buffer_load_dword off, s[16:19], 0 offset:8 slc lds 
# |            26:  ; wait_asyncmark(1) 
# | next:17'0                          X error: no match found
# |            27:  s_waitcnt vmcnt(0) 
# | next:17'0      ~~~~~~~~~~~~~~~~~~~~
# | next:17'1       ?                   possible intended match
# |            28:  ds_read_b32 v0, v0 
# | next:17'0      ~~~~~~~~~~~~~~~~~~~~
# |            29:  s_waitcnt lgkmcnt(0) 
# | next:17'0      ~~~~~~~~~~~~~~~~~~~~~~
# |            30:  s_setpc_b64 s[30:31] 
# | next:17'0      ~~~~~~~~~~~~~~~~~~~~~~
# |            31: .Lfunc_end0: 
# | next:17'0      ~~~~~~~~~~~~~
# |            32:  .size raw.buffer.load, .Lfunc_end0-raw.buffer.load 
# | next:17'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             .
# |             .
# |             .
# |            71:  buffer_load_dword off, s[16:19], 0 lds 
# |            72:  ; asyncmark 
# |            73:  buffer_load_dword off, s[16:19], 0 offset:4 glc lds 
# |            74:  ; asyncmark 
# |            75:  buffer_load_dword off, s[16:19], 0 offset:8 slc lds 
# |            76:  ; wait_asyncmark(1) 
# | next:44'0                          X error: no match found
# |            77:  s_waitcnt vmcnt(0) 
# | next:44'0      ~~~~~~~~~~~~~~~~~~~~
# | next:44'1       ?                   possible intended match
# |            78:  ds_read_b32 v0, v0 
# | next:44'0      ~~~~~~~~~~~~~~~~~~~~
# |            79:  s_waitcnt lgkmcnt(0) 
# | next:44'0      ~~~~~~~~~~~~~~~~~~~~~~
# |            80:  s_setpc_b64 s[30:31] 
# | next:44'0      ~~~~~~~~~~~~~~~~~~~~~~
# |            81: .Lfunc_end1: 
# | next:44'0      ~~~~~~~~~~~~~
# |            82:  .size raw.ptr.buffer.load, .Lfunc_end1-raw.ptr.buffer.load 
# | next:44'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             .
# |             .
# |             .
# |           122:  ; asyncmark 
# |           123:  buffer_load_dword v0, s[16:19], 0 idxen offset:4 glc lds 
# |           124:  ; asyncmark 
# |           125:  buffer_load_dword v0, s[16:19], 0 idxen offset:8 slc lds 
# |           126:  v_mov_b32_e32 v0, s20 
# |           127:  ; wait_asyncmark(1) 
# | next:72'0                          X error: no match found
# |           128:  s_waitcnt vmcnt(0) 
# | next:72'0      ~~~~~~~~~~~~~~~~~~~~
# | next:72'1       ?                   possible intended match
# |           129:  ds_read_b32 v0, v0 
# | next:72'0      ~~~~~~~~~~~~~~~~~~~~
# |           130:  s_waitcnt lgkmcnt(0) 
# | next:72'0      ~~~~~~~~~~~~~~~~~~~~~~
# |           131:  s_setpc_b64 s[30:31] 
# | next:72'0      ~~~~~~~~~~~~~~~~~~~~~~
# |           132: .Lfunc_end2: 
# | next:72'0      ~~~~~~~~~~~~~
# |           133:  .size struct.buffer.load, .Lfunc_end2-struct.buffer.load 
# | next:72'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             .
# |             .
# |             .
# |           173:  ; asyncmark 
# |           174:  buffer_load_dword v0, s[16:19], 0 idxen offset:4 glc lds 
# |           175:  ; asyncmark 
# |           176:  buffer_load_dword v0, s[16:19], 0 idxen offset:8 slc lds 
# |           177:  v_mov_b32_e32 v0, s20 
# |           178:  ; wait_asyncmark(1) 
# | next:100'0                         X error: no match found
# |           179:  s_waitcnt vmcnt(0) 
# | next:100'0     ~~~~~~~~~~~~~~~~~~~~
# | next:100'1      ?                   possible intended match
# |           180:  ds_read_b32 v0, v0 
# | next:100'0     ~~~~~~~~~~~~~~~~~~~~
# |           181:  s_waitcnt lgkmcnt(0) 
# | next:100'0     ~~~~~~~~~~~~~~~~~~~~~~
# |           182:  s_setpc_b64 s[30:31] 
# | next:100'0     ~~~~~~~~~~~~~~~~~~~~~~
# |           183: .Lfunc_end3: 
# | next:100'0     ~~~~~~~~~~~~~
# |           184:  .size struct.ptr.buffer.load, .Lfunc_end3-struct.ptr.buffer.load 
# | next:100'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>LLVM.CodeGen/AMDGPU/asyncmark-max-pregfx12.ll</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\llc.exe -march=amdgcn -mcpu=gfx900  < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\asyncmark-max-pregfx12.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\asyncmark-max-pregfx12.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -march=amdgcn -mcpu=gfx900
# .---command stderr------------
# | LLVM ERROR: out of memory
# | Allocation 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: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\llc.exe -march=amdgcn -mcpu=gfx900
# | 1.	Running pass 'CallGraph Pass Manager' on module '<stdin>'.
# | 2.	Running pass 'SI insert wait instructions' on function '@max_when_merged'
# | Exception Code: 0xC000001D
# |  #0 0x00007ff61955b336 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x2ccb336)
# |  #1 0x00007ffdeb6cbb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |  #2 0x00007ffdeb6ccad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |  #3 0x00007ff616f7dbb8 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x6edbb8)
# |  #4 0x00007ff616f7d38e (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x6ed38e)
# |  #5 0x00007ff617831083 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xfa1083)
# |  #6 0x00007ff617828a42 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xf98a42)
# |  #7 0x00007ff61782d99a (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xf9d99a)
# |  #8 0x00007ff6172ccaa3 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0xa3caa3)
# |  #9 0x00007ff616d3d4e2 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4ad4e2)
# | #10 0x00007ff618a095ab (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x21795ab)
# | #11 0x00007ff616d3e1c1 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4ae1c1)
# | #12 0x00007ff616897ab7 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x7ab7)
# | #13 0x00007ff616894d36 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4d36)
# | #14 0x00007ff61b013a00 (c:\_work\llvm-project\llvm-project\build\bin\llc.exe+0x4783a00)
# | #15 0x00007ffdf1d64cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #16 0x00007ffdfdf7edcb (C:\Windows\SYSTEM32\ntdll.dll+0x7edcb)
# `-----------------------------
# 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\asyncmark-max-pregfx12.ll'
# .---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\asyncmark-max-pregfx12.ll
# `-----------------------------
# error: command failed with exit status: 2

--

```
</details>
<details>
<summary>LLVM.CodeGen/AMDGPU/asyncmark-pregfx12.ll</summary>

```
Exit Code: 2
Timeout: Reached timeout of 1200 seconds

Command Output (stdout):
--
# RUN: at line 2
sed 's/.ASYNC/.async/' C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\asyncmark-pregfx12.ll | c:\_work\llvm-project\llvm-project\build\bin\llc.exe -march=amdgcn -mcpu=gfx900 -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\asyncmark-pregfx12.ll -check-prefixes=WITHASYNC
# executed command: sed s/.ASYNC/.async/ 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\asyncmark-pregfx12.ll'
# note: command had no output on stdout or stderr
# error: command reached timeout: True
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -march=amdgcn -mcpu=gfx900 -o -
# note: command had no output on stdout or stderr
# error: command failed with exit status: 15
# error: command reached timeout: True
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\AMDGPU\asyncmark-pregfx12.ll' -check-prefixes=WITHASYNC
# .---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\asyncmark-pregfx12.ll -check-prefixes=WITHASYNC
# `-----------------------------
# error: command failed with exit status: 2
# error: command reached timeout: True

--

```
</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/179572


More information about the llvm-commits mailing list