[Mlir-commits] [mlir] [mlir][Transforms] Fix crash in `CFGToSCF` when conversion fails (PR #173590)
NohHyeon Kwon
llvmlistbot at llvm.org
Fri Dec 26 03:57:01 PST 2025
================
@@ -0,0 +1,27 @@
+// RUN: not mlir-opt %s -lift-cf-to-scf 2>&1 | FileCheck %s
+
+// This test verifies that the pass does not crash when encountering unsupported
+// control flow operations within a cycle (e.g., SPIR-V loops). (issue #173566)
+// It ensures that temporary regions are cleaned up correctly upon failure.
+
+// CHECK: Cannot convert unknown control flow op to structured control flow
----------------
swote-git wrote:
I'll fix it.
https://github.com/llvm/llvm-project/pull/173590
More information about the Mlir-commits
mailing list