[llvm] [SPIR-V] Enable structurizer for kernel environment (PR #166079)

Dmitry Sidorov via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 3 06:04:54 PST 2025


================
@@ -181,7 +181,9 @@ void SPIRVPassConfig::addISelPrepare() {
     // If an address space cast is not removed while targeting Vulkan, lowering
     // will fail during MIR lowering.
     addPass(createInferAddressSpacesPass());
+  }
 
+  if (TM.getSubtargetImpl()->isShader() || TM.getSubtargetImpl()->isKernel()) {
----------------
MrSidims wrote:

Or actually, given there is the following [PR](https://github.com/llvm/llvm-project/pull/165815), let me summon @AlexVlx to answer if it can break something on their end.

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


More information about the llvm-commits mailing list