Skip to content

Commit 3ce2d1e

Browse files
authored
[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".
1 parent 38078b2 commit 3ce2d1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Transforms/CSE.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ void CSEDriver::replaceUsesAndDelete(ScopedMapTy &knownValues, Operation *op,
140140
if (auto *rewriteListener =
141141
dyn_cast_if_present<RewriterBase::Listener>(rewriter.getListener()))
142142
rewriteListener->notifyOperationReplaced(op, existing);
143-
// Replace all uses, but do not remote the operation yet. This does not
143+
// Replace all uses, but do not remove the operation yet. This does not
144144
// notify the listener because the original op is not erased.
145145
rewriter.replaceAllUsesWith(op->getResults(), existing->getResults());
146146
opsToErase.push_back(op);
@@ -156,7 +156,7 @@ void CSEDriver::replaceUsesAndDelete(ScopedMapTy &knownValues, Operation *op,
156156
if (all_of(v.getUses(), wasVisited))
157157
rewriteListener->notifyOperationReplaced(op, existing);
158158

159-
// Replace all uses, but do not remote the operation yet. This does not
159+
// Replace all uses, but do not remove the operation yet. This does not
160160
// notify the listener because the original op is not erased.
161161
rewriter.replaceUsesWithIf(op->getResults(), existing->getResults(),
162162
wasVisited);

0 commit comments

Comments
 (0)