[llvm-branch-commits] [mlir] [mlir][Transforms] Dialect Conversion: Add `replaceOpWithMultiple` (PR #115816)

Markus Böck via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Nov 12 02:46:11 PST 2024


================
@@ -1497,15 +1530,33 @@ void ConversionPatternRewriter::replaceOp(Operation *op, ValueRange newValues) {
     impl->logger.startLine()
         << "** Replace : '" << op->getName() << "'(" << op << ")\n";
   });
-  impl->notifyOpReplaced(op, newValues);
+  SmallVector<ReplacementValues> newVals(newValues.size(), {});
----------------
zero9178 wrote:

```suggestion
  SmallVector<ReplacementValues> newVals(newValues.size());
```

https://github.com/llvm/llvm-project/pull/115816


More information about the llvm-branch-commits mailing list