[llvm] [SPIR-V] Fix crash on vector-typed GEPs in SPIRVEmitIntrinsics (PR #197101)
Arseniy Obolenskiy via llvm-commits
llvm-commits at lists.llvm.org
Tue May 12 21:14:12 PDT 2026
================
@@ -0,0 +1,53 @@
+; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv64-unknown-unknown --spirv-ext=+SPV_INTEL_masked_gather_scatter %s -o - | FileCheck %s
----------------
aobolensk wrote:
On the commit before I get this issue for 2x and 4x cases:
```
# .---command stderr------------
# | error: line 54: The Result Type of OpPtrAccessChain <id> '26[%26]' must be OpTypePointer. Found OpTypeVector.
# | %26 = OpPtrAccessChain %v2_ptr_CrossWorkgroup_uchar %p_0 %12
# |
# `-----------------------------
```
And yes, you're right that the original issue error is not reproducible as is anymore. Here in this patch we're enabling the complete check for these cases where we have more than 1 element as described in the original issue
https://github.com/llvm/llvm-project/pull/197101
More information about the llvm-commits
mailing list