[llvm-branch-commits] [mlir] [mlir][Transforms] Support rolling back properties in dialect conversion (PR #82474)

Mehdi Amini via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Feb 21 01:25:56 PST 2024


================
@@ -1016,13 +1035,20 @@ class ModifyOperationRewrite : public OperationRewrite {
     op->setOperands(operands);
     for (const auto &it : llvm::enumerate(successors))
       op->setSuccessor(it.value(), it.index());
+    if (propertiesStorage) {
+      OpaqueProperties prop(propertiesStorage);
+      op->copyProperties(prop);
+      operator delete(propertiesStorage);
----------------
joker-eph wrote:

(Same)

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


More information about the llvm-branch-commits mailing list