[Mlir-commits] [mlir] [mlir][linalg-transform] dyn_cast DestinationStyleOpInterface and early return (PR #166299)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Wed Nov 5 03:02:00 PST 2025


================
@@ -1060,7 +1063,7 @@ tileAndFuseFirstExtractUse(RewriterBase &rewriter, Diagnostic &diag,
       resultNumber, offsets, sizes);
 
   // Cleanup clone.
-  if (dyn_cast<LoopLikeOpInterface>(containingOp))
+  if (dyn_cast<LoopLikeOpInterface>(containingOp) && cloned)
----------------
ftynse wrote:

While we are here, we can also change this to be an `isa`.

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


More information about the Mlir-commits mailing list