[Mlir-commits] [mlir] [mlir][Builtin] Fix crash folding self-referential unrealized_conversion_cast in graph regions (PR #207185)

Anutosh Bhat llvmlistbot at llvm.org
Thu Jul 2 06:28:36 PDT 2026


================
@@ -201,6 +201,11 @@ UnrealizedConversionCastOp::fold(FoldAdaptor adaptor,
   ResultRange results = getOutputs();
 
   if (operands.getType() == results.getType()) {
+    // Skip if any operand is this op's own result (self-referential cycle).
----------------
anutosh491 wrote:

Added a comment here just in case.

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


More information about the Mlir-commits mailing list