[Mlir-commits] [mlir] [mlir][IR] Make `RewriterBase::replaceOp` non-virtual (PR #160529)
Markus Böck
llvmlistbot at llvm.org
Fri Sep 26 05:26:32 PDT 2025
================
@@ -900,7 +900,7 @@ class ConversionPatternRewriter final : public PatternRewriter {
/// RewriterBase APIs, (3) may be removed in the future.
void replaceAllUsesWith(Value from, ValueRange to);
void replaceAllUsesWith(Value from, Value to) override {
- replaceAllUsesWith(from, ValueRange{to});
+ replaceAllUsesWith(from, to ? ValueRange{to} : ValueRange{});
----------------
zero9178 wrote:
This sounds to me like it effectively attempts to be a 1:0 dialect conversion and something worth adapting in the future
https://github.com/llvm/llvm-project/pull/160529
More information about the Mlir-commits
mailing list