[Mlir-commits] [mlir] [mlir] notify insertion of parent op first when cloning (PR #73806)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Nov 30 00:56:31 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);
// The `insert` call below handles the notification for inserting `newOp`
----------------
jeanPerier wrote:
Fixed.
https://github.com/llvm/llvm-project/pull/73806
More information about the Mlir-commits
mailing list