[Mlir-commits] [mlir] [mlir] notify insertion of parent op first when cloning (PR #73806)

Slava Zakharin llvmlistbot at llvm.org
Wed Nov 29 14:55:46 PST 2023


================
@@ -527,6 +527,7 @@ LogicalResult OpBuilder::tryFold(Operation *op,
 
 Operation *OpBuilder::clone(Operation &op, IRMapping &mapper) {
   Operation *newOp = op.clone(mapper);
+  newOp = insert(newOp);
----------------
vzakhari wrote:

Yes, I meant the dialect conversion.

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


More information about the Mlir-commits mailing list