[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


================
@@ -537,7 +538,7 @@ Operation *OpBuilder::clone(Operation &op, IRMapping &mapper) {
     for (Region &region : newOp->getRegions())
       region.walk(walkFn);
----------------
jeanPerier wrote:

Thanks for catching this! Updated the walk to use pre-order and the test to verify that.

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


More information about the Mlir-commits mailing list