[Mlir-commits] [mlir] [mlir][spirv] Split conditional basic blocks during deserialization (PR #127639)

Igor Wodiany llvmlistbot at llvm.org
Wed Feb 19 01:42:58 PST 2025


================
@@ -0,0 +1,40 @@
+; RUN: %if spirv-tools %{ spirv-as --target-env spv1.0 %s -o - | mlir-translate --deserialize-spirv - -o - | FileCheck %s %}
+; CHECK: spirv.module
----------------
IgWod-IMG wrote:

The main purpose of this test is to check that deserialization doesn't fail on control flow structurization. I'll add a comment to explain it. I only checked for module, as the test would fail before anything is generated, but I guess it's an opportunity to also check if the selection region is generated correctly, so I'll add few more checks.

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


More information about the Mlir-commits mailing list