[llvm] [SPIR-V] Guard against infinite loop in decorateUsesAsNonUniform (PR #208224)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 9 02:31:19 PDT 2026


github-actions[bot] wrote:

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

* 178559 tests passed
* 3577 tests skipped
* 4 tests failed

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

### lldb-api
<details>
<summary>lldb-api.functionalities/scripted_frame_provider/circular_dependency/TestFrameProviderCircularDependency.py</summary>

```
Script:
--
/usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/dotest.py -u CXXFLAGS -u CFLAGS --env LLVM_LIBS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --env LLVM_INCLUDE_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include --env LLVM_TOOLS_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --libcxx-include-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/c++/v1 --libcxx-include-target-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/include/x86_64-unknown-linux-gnu/c++/v1 --libcxx-library-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib/x86_64-unknown-linux-gnu --triple x86_64-unknown-linux-gnu --build-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build --lldb-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-lldb/lldb-api --clang-module-cache-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/module-cache-clang/lldb-api --executable /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/lldb --lldb-python-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/local/lib/python3.12/dist-packages --compiler /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/clang --dsymutil /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin/dsymutil --make /usr/bin/gmake --llvm-tools-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./bin --lldb-obj-root /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/lldb --lldb-libs-dir /home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib --cmake-build-type Release /home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/functionalities/scripted_frame_provider/circular_dependency -p TestFrameProviderCircularDependency.py
--
Exit Code: 1

Command Output (stdout):
--
Skipping the following test categories: msvcstl, dsym, pdb, gmodules, debugserver, objc

--
Command Output (stderr):
--
FAIL: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_circular_dependency_evaluate_expression_in_get_frame (TestFrameProviderCircularDependency.FrameProviderCircularDependencyTestCase.test_circular_dependency_evaluate_expression_in_get_frame)
Log Files:
 - /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lldb-test-build/functionalities/scripted_frame_provider/circular_dependency/TestFrameProviderCircularDependency/Failure_test_circular_dependency_evaluate_expression_in_get_frame.log
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_circular_dependency_handle_command_in_init (TestFrameProviderCircularDependency.FrameProviderCircularDependencyTestCase.test_circular_dependency_handle_command_in_init)
PASS: LLDB (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-x86_64) :: test_circular_dependency_with_function_replacement (TestFrameProviderCircularDependency.FrameProviderCircularDependencyTestCase.test_circular_dependency_with_function_replacement)
======================================================================
FAIL: test_circular_dependency_evaluate_expression_in_get_frame (TestFrameProviderCircularDependency.FrameProviderCircularDependencyTestCase.test_circular_dependency_evaluate_expression_in_get_frame)
   Test that calling EvaluateExpression in get_frame_at_index doesn't
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/lldb/test/API/functionalities/scripted_frame_provider/circular_dependency/TestFrameProviderCircularDependency.py", line 204, in test_circular_dependency_evaluate_expression_in_get_frame
    self.assertIsNotNone(
AssertionError: unexpectedly None : Frame 1 should have function name
Config=x86_64-/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang
----------------------------------------------------------------------
Ran 3 tests in 36.115s

FAILED (failures=1)

--

```
</details>

### LLVM
<details>
<summary>LLVM.CodeGen/SPIRV/hlsl-resources/NonUniformIdx/RWBufferNonUniformIdx.ll</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -O0 -mtriple=spirv1.6-unknown-vulkan1.3-compute /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/hlsl-resources/NonUniformIdx/RWBufferNonUniformIdx.ll -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/hlsl-resources/NonUniformIdx/RWBufferNonUniformIdx.ll --match-full-lines
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -O0 -mtriple=spirv1.6-unknown-vulkan1.3-compute /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/hlsl-resources/NonUniformIdx/RWBufferNonUniformIdx.ll -o -
# .---command stderr------------
# | llc: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/MachineRegisterInfo.cpp:410: MachineInstr *llvm::MachineRegisterInfo::getVRegDef(Register) const: Assertion `std::next(I) == def_instr_end() && "getVRegDef assumes at most one definition"' 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 -O0 -mtriple=spirv1.6-unknown-vulkan1.3-compute /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/hlsl-resources/NonUniformIdx/RWBufferNonUniformIdx.ll -o -
# | 1.	Running pass 'Function Pass Manager' on module '/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/hlsl-resources/NonUniformIdx/RWBufferNonUniformIdx.ll'.
# | 2.	Running pass 'InstructionSelect' on function '@main'
# |  #0 0x000000000883eedb llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:881:13
# |  #1 0x000000000883be21 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# |  #2 0x000000000883fcf1 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:448:38
# |  #3 0x00007f096cd7c330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# |  #4 0x00007f096cdd5b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# |  #5 0x00007f096cd7c27e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# |  #6 0x00007f096cd5f8ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# |  #7 0x00007f096cd5f81b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# |  #8 0x00007f096cd72517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# |  #9 0x00000000075b1644 llvm::MachineRegisterInfo::getVRegDef(llvm::Register) const /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/MachineRegisterInfo.cpp:0:3
# | #10 0x00000000066ed382 pair<llvm::Register &, llvm::MachineInstr *, true> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_pair.h:688:4
# | #11 0x00000000066ed382 decorateUsesAsNonUniform /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:6387:7
# | #12 0x00000000066ed382 (anonymous namespace)::SPIRVInstructionSelector::selectResourceNonUniformIndex(llvm::Register&, llvm::SPIRVTypeInst, llvm::MachineInstr&) const /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:6380:3
# | #13 0x00000000066d3624 (anonymous namespace)::SPIRVInstructionSelector::selectIntrinsic(llvm::Register, llvm::SPIRVTypeInst, llvm::MachineInstr&) const /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:0:12
# | #14 0x00000000066c11e8 (anonymous namespace)::SPIRVInstructionSelector::select(llvm::MachineInstr&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:965:7
# | #15 0x0000000008f5f9b7 llvm::InstructionSelect::selectMachineFunction(llvm::MachineFunction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp:0:0
# | #16 0x0000000008f5f43e operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp:143:53
# | #17 0x0000000008f5f43e ~scope_exit /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ScopeExit.h:43:7
# | #18 0x0000000008f5f43e llvm::InstructionSelect::runOnMachineFunction(llvm::MachineFunction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp:155:1
# | #19 0x00000000074f9009 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:98:7
# | #20 0x0000000007a6f7b0 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
# | #21 0x0000000007a772d2 llvm::FPPassManager::runOnModule(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1470:13
# | #22 0x0000000007a70516 runOnModule /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
# | #23 0x0000000007a70516 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:533:44
# | #24 0x000000000521458b 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:882:17
# | #25 0x00000000052114c3 main /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/llc.cpp:460:13
# | #26 0x00007f096cd611ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #27 0x00007f096cd6128b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #28 0x0000000005210665 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc+0x5210665)
# `-----------------------------
# 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/SPIRV/hlsl-resources/NonUniformIdx/RWBufferNonUniformIdx.ll --match-full-lines
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/hlsl-resources/NonUniformIdx/RWBufferNonUniformIdx.ll --match-full-lines
# `-----------------------------
# error: command failed with exit status: 2

--

```
</details>
<details>
<summary>LLVM.CodeGen/SPIRV/hlsl-resources/NonUniformIdx/RWBufferNonUniformIdxLoop.ll</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -O0 -mtriple=spirv1.6-unknown-vulkan1.3-compute /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/hlsl-resources/NonUniformIdx/RWBufferNonUniformIdxLoop.ll -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/hlsl-resources/NonUniformIdx/RWBufferNonUniformIdxLoop.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -O0 -mtriple=spirv1.6-unknown-vulkan1.3-compute /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/hlsl-resources/NonUniformIdx/RWBufferNonUniformIdxLoop.ll -o -
# .---command stderr------------
# | llc: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/MachineRegisterInfo.cpp:410: MachineInstr *llvm::MachineRegisterInfo::getVRegDef(Register) const: Assertion `std::next(I) == def_instr_end() && "getVRegDef assumes at most one definition"' 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 -O0 -mtriple=spirv1.6-unknown-vulkan1.3-compute /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/hlsl-resources/NonUniformIdx/RWBufferNonUniformIdxLoop.ll -o -
# | 1.	Running pass 'Function Pass Manager' on module '/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/hlsl-resources/NonUniformIdx/RWBufferNonUniformIdxLoop.ll'.
# | 2.	Running pass 'InstructionSelect' on function '@main'
# |  #0 0x000000000883eedb llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:881:13
# |  #1 0x000000000883be21 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# |  #2 0x000000000883fcf1 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:448:38
# |  #3 0x00007995d2ec2330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# |  #4 0x00007995d2f1bb2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# |  #5 0x00007995d2ec227e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# |  #6 0x00007995d2ea58ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# |  #7 0x00007995d2ea581b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# |  #8 0x00007995d2eb8517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# |  #9 0x00000000075b1644 llvm::MachineRegisterInfo::getVRegDef(llvm::Register) const /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/MachineRegisterInfo.cpp:0:3
# | #10 0x00000000066ed382 pair<llvm::Register &, llvm::MachineInstr *, true> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_pair.h:688:4
# | #11 0x00000000066ed382 decorateUsesAsNonUniform /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:6387:7
# | #12 0x00000000066ed382 (anonymous namespace)::SPIRVInstructionSelector::selectResourceNonUniformIndex(llvm::Register&, llvm::SPIRVTypeInst, llvm::MachineInstr&) const /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:6380:3
# | #13 0x00000000066d3624 (anonymous namespace)::SPIRVInstructionSelector::selectIntrinsic(llvm::Register, llvm::SPIRVTypeInst, llvm::MachineInstr&) const /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:0:12
# | #14 0x00000000066c11e8 (anonymous namespace)::SPIRVInstructionSelector::select(llvm::MachineInstr&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:965:7
# | #15 0x0000000008f5f9b7 llvm::InstructionSelect::selectMachineFunction(llvm::MachineFunction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp:0:0
# | #16 0x0000000008f5f43e operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp:143:53
# | #17 0x0000000008f5f43e ~scope_exit /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ScopeExit.h:43:7
# | #18 0x0000000008f5f43e llvm::InstructionSelect::runOnMachineFunction(llvm::MachineFunction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp:155:1
# | #19 0x00000000074f9009 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:98:7
# | #20 0x0000000007a6f7b0 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
# | #21 0x0000000007a772d2 llvm::FPPassManager::runOnModule(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1470:13
# | #22 0x0000000007a70516 runOnModule /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
# | #23 0x0000000007a70516 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:533:44
# | #24 0x000000000521458b 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:882:17
# | #25 0x00000000052114c3 main /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/llc.cpp:460:13
# | #26 0x00007995d2ea71ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #27 0x00007995d2ea728b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #28 0x0000000005210665 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc+0x5210665)
# `-----------------------------
# 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/SPIRV/hlsl-resources/NonUniformIdx/RWBufferNonUniformIdxLoop.ll
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/hlsl-resources/NonUniformIdx/RWBufferNonUniformIdxLoop.ll
# `-----------------------------
# error: command failed with exit status: 2

--

```
</details>
<details>
<summary>LLVM.CodeGen/SPIRV/hlsl-resources/NonUniformIdx/RWStructuredBufferNonUniformIdx.ll</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -O0 -mtriple=spirv1.6-unknown-vulkan1.3-compute /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/hlsl-resources/NonUniformIdx/RWStructuredBufferNonUniformIdx.ll -o - | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/hlsl-resources/NonUniformIdx/RWStructuredBufferNonUniformIdx.ll --match-full-lines
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -O0 -mtriple=spirv1.6-unknown-vulkan1.3-compute /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/hlsl-resources/NonUniformIdx/RWStructuredBufferNonUniformIdx.ll -o -
# .---command stderr------------
# | llc: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/MachineRegisterInfo.cpp:410: MachineInstr *llvm::MachineRegisterInfo::getVRegDef(Register) const: Assertion `std::next(I) == def_instr_end() && "getVRegDef assumes at most one definition"' 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 -O0 -mtriple=spirv1.6-unknown-vulkan1.3-compute /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/hlsl-resources/NonUniformIdx/RWStructuredBufferNonUniformIdx.ll -o -
# | 1.	Running pass 'Function Pass Manager' on module '/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/hlsl-resources/NonUniformIdx/RWStructuredBufferNonUniformIdx.ll'.
# | 2.	Running pass 'InstructionSelect' on function '@main'
# |  #0 0x000000000883eedb llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:881:13
# |  #1 0x000000000883be21 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
# |  #2 0x000000000883fcf1 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:448:38
# |  #3 0x000078f320e04330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# |  #4 0x000078f320e5db2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
# |  #5 0x000078f320e0427e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
# |  #6 0x000078f320de78ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
# |  #7 0x000078f320de781b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
# |  #8 0x000078f320dfa517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
# |  #9 0x00000000075b1644 llvm::MachineRegisterInfo::getVRegDef(llvm::Register) const /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/MachineRegisterInfo.cpp:0:3
# | #10 0x00000000066ed382 pair<llvm::Register &, llvm::MachineInstr *, true> /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_pair.h:688:4
# | #11 0x00000000066ed382 decorateUsesAsNonUniform /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:6387:7
# | #12 0x00000000066ed382 (anonymous namespace)::SPIRVInstructionSelector::selectResourceNonUniformIndex(llvm::Register&, llvm::SPIRVTypeInst, llvm::MachineInstr&) const /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:6380:3
# | #13 0x00000000066d3624 (anonymous namespace)::SPIRVInstructionSelector::selectIntrinsic(llvm::Register, llvm::SPIRVTypeInst, llvm::MachineInstr&) const /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:0:12
# | #14 0x00000000066c11e8 (anonymous namespace)::SPIRVInstructionSelector::select(llvm::MachineInstr&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp:965:7
# | #15 0x0000000008f5f9b7 llvm::InstructionSelect::selectMachineFunction(llvm::MachineFunction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp:0:0
# | #16 0x0000000008f5f43e operator() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp:143:53
# | #17 0x0000000008f5f43e ~scope_exit /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/ScopeExit.h:43:7
# | #18 0x0000000008f5f43e llvm::InstructionSelect::runOnMachineFunction(llvm::MachineFunction&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp:155:1
# | #19 0x00000000074f9009 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:98:7
# | #20 0x0000000007a6f7b0 llvm::FPPassManager::runOnFunction(llvm::Function&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
# | #21 0x0000000007a772d2 llvm::FPPassManager::runOnModule(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1470:13
# | #22 0x0000000007a70516 runOnModule /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:0:27
# | #23 0x0000000007a70516 llvm::legacy::PassManagerImpl::run(llvm::Module&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:533:44
# | #24 0x000000000521458b 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:882:17
# | #25 0x00000000052114c3 main /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/tools/llc/llc.cpp:460:13
# | #26 0x000078f320de91ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
# | #27 0x000078f320de928b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
# | #28 0x0000000005210665 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc+0x5210665)
# `-----------------------------
# 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/SPIRV/hlsl-resources/NonUniformIdx/RWStructuredBufferNonUniformIdx.ll --match-full-lines
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/SPIRV/hlsl-resources/NonUniformIdx/RWStructuredBufferNonUniformIdx.ll --match-full-lines
# `-----------------------------
# 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/208224


More information about the llvm-commits mailing list