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

Nathan Gauër via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 3 02:43:28 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()) {
----------------
Keenuts wrote:

Is there another valid target? Should the condition be removed instead?

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


More information about the llvm-commits mailing list