[Mlir-commits] [mlir] [mlir][Transforms] `GreedyPatternRewriteDriver`: log successful folding (PR #77796)
Matthias Springer
llvmlistbot at llvm.org
Fri Jan 12 01:46:03 PST 2024
================
@@ -136,6 +136,17 @@ struct DebugFingerPrints : public RewriterBase::ForwardingListener {
};
#endif // MLIR_ENABLE_EXPENSIVE_PATTERN_API_CHECKS
+#ifndef NDEBUG
+static Operation *getDumpRootOp(Operation *op) {
+ return op->getParentWithTrait<mlir::OpTrait::IsIsolatedFromAbove>();
----------------
matthias-springer wrote:
Changed to dumping only the direct parent.
https://github.com/llvm/llvm-project/pull/77796
More information about the Mlir-commits
mailing list