[Mlir-commits] [mlir] 9f235a8 - [mlir][msan] Don't access destroyed node
Vitaly Buka
llvmlistbot at llvm.org
Thu Apr 28 08:59:03 PDT 2022
Author: Vitaly Buka
Date: 2022-04-28T08:58:27-07:00
New Revision: 9f235a88f171b4ae6bcb9b45f5639c3810d5bf20
URL: https://github.com/llvm/llvm-project/commit/9f235a88f171b4ae6bcb9b45f5639c3810d5bf20
DIFF: https://github.com/llvm/llvm-project/commit/9f235a88f171b4ae6bcb9b45f5639c3810d5bf20.diff
LOG: [mlir][msan] Don't access destroyed node
Added:
Modified:
mlir/lib/Dialect/Affine/Transforms/LoopFusion.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Affine/Transforms/LoopFusion.cpp b/mlir/lib/Dialect/Affine/Transforms/LoopFusion.cpp
index bf028c31a8541..6e633cf3c81e9 100644
--- a/mlir/lib/Dialect/Affine/Transforms/LoopFusion.cpp
+++ b/mlir/lib/Dialect/Affine/Transforms/LoopFusion.cpp
@@ -1949,8 +1949,9 @@ struct GreedyFusion {
// edges, and it does not write to a memref which escapes the
// function.
if (mdg->getOutEdgeCount(sibNode->id) == 0) {
+ Operation *op = sibNode->op;
mdg->removeNode(sibNode->id);
- sibNode->op->erase();
+ op->erase();
}
}
More information about the Mlir-commits
mailing list