[llvm] [SPIR-V] Scalarize vector of pointers for ptrtoint/inttoptr (PR #184817)

Arseniy Obolenskiy via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 27 05:39:16 PDT 2026


aobolensk wrote:

> Is there existing test that shows, that scalarization is skipped when SPV_INTEL_masked_gather_scatter is not enabled? (test should contain vector of pointers and no gather/scatter instruction).

Yes, there is one: llvm/test/CodeGen/SPIRV/extensions/SPV_INTEL_masked_gather_scatter/vector-of-pointers-no-extension.ll 

but it is a little different: there we have `<2 x ptr>` as kernel parameter type which is aparently still unsupported when we don't have `SPV_INTEL_masked_gather_scatter` (unlike the case inside the function body where we can perform decomposition)

https://github.com/llvm/llvm-project/pull/184817


More information about the llvm-commits mailing list