[Mlir-commits] [mlir] 3ce2d1e - [mlir] Fix typo in CSE transform (#137341)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Apr 25 08:53:32 PDT 2025


Author: bubblepipe
Date: 2025-04-25T08:53:29-07:00
New Revision: 3ce2d1e6a1fde05604a09b70f7bf99bffa1329ad

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

LOG: [mlir] Fix typo in CSE transform (#137341)

"Replace all uses, but do not _remote_ the operation yet" should be
"Replace all uses, but do not _remove_ the operation yet".

Added: 
    

Modified: 
    mlir/lib/Transforms/CSE.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Transforms/CSE.cpp b/mlir/lib/Transforms/CSE.cpp
index 3affd88d158de..8e03f62894bab 100644
--- a/mlir/lib/Transforms/CSE.cpp
+++ b/mlir/lib/Transforms/CSE.cpp
@@ -140,7 +140,7 @@ void CSEDriver::replaceUsesAndDelete(ScopedMapTy &knownValues, Operation *op,
     if (auto *rewriteListener =
             dyn_cast_if_present<RewriterBase::Listener>(rewriter.getListener()))
       rewriteListener->notifyOperationReplaced(op, existing);
-    // Replace all uses, but do not remote the operation yet. This does not
+    // Replace all uses, but do not remove the operation yet. This does not
     // notify the listener because the original op is not erased.
     rewriter.replaceAllUsesWith(op->getResults(), existing->getResults());
     opsToErase.push_back(op);
@@ -156,7 +156,7 @@ void CSEDriver::replaceUsesAndDelete(ScopedMapTy &knownValues, Operation *op,
         if (all_of(v.getUses(), wasVisited))
           rewriteListener->notifyOperationReplaced(op, existing);
 
-    // Replace all uses, but do not remote the operation yet. This does not
+    // Replace all uses, but do not remove the operation yet. This does not
     // notify the listener because the original op is not erased.
     rewriter.replaceUsesWithIf(op->getResults(), existing->getResults(),
                                wasVisited);


        


More information about the Mlir-commits mailing list