[Mlir-commits] [mlir] daf4189 - [mlir] Fix GreedyPatternRewriteDriver::notifyOperationModified.

Ingo Müller llvmlistbot at llvm.org
Wed Mar 1 02:48:07 PST 2023


Author: Ingo Müller
Date: 2023-03-01T10:48:01Z
New Revision: daf41890709b8ad60e45c37c173105ee8f3ba971

URL: https://github.com/llvm/llvm-project/commit/daf41890709b8ad60e45c37c173105ee8f3ba971
DIFF: https://github.com/llvm/llvm-project/commit/daf41890709b8ad60e45c37c173105ee8f3ba971.diff

LOG: [mlir] Fix GreedyPatternRewriteDriver::notifyOperationModified.

The previous implementation did not notify the attached listener.

Reviewed By: springerm

Differential Revision: https://reviews.llvm.org/D145049

Added: 
    

Modified: 
    mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp b/mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
index a5977ccec1182..47d8a6c40b6c2 100644
--- a/mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
+++ b/mlir/lib/Transforms/Utils/GreedyPatternRewriteDriver.cpp
@@ -315,6 +315,8 @@ void GreedyPatternRewriteDriver::notifyOperationModified(Operation *op) {
     logger.startLine() << "** Modified: '" << op->getName() << "'(" << op
                        << ")\n";
   });
+  if (config.listener)
+    config.listener->notifyOperationModified(op);
   addToWorklist(op);
 }
 


        


More information about the Mlir-commits mailing list