[Mlir-commits] [mlir] 94213bc - [mlir][linalg][bufferize] Fix bug in getInplaceableOpResult
Matthias Springer
llvmlistbot at llvm.org
Thu Oct 21 06:01:08 PDT 2021
Author: Matthias Springer
Date: 2021-10-21T21:55:26+09:00
New Revision: 94213bc7decb1d4c131fb6feb5101e859640478f
URL: https://github.com/llvm/llvm-project/commit/94213bc7decb1d4c131fb6feb5101e859640478f
DIFF: https://github.com/llvm/llvm-project/commit/94213bc7decb1d4c131fb6feb5101e859640478f.diff
LOG: [mlir][linalg][bufferize] Fix bug in getInplaceableOpResult
Differential Revision: https://reviews.llvm.org/D112123
Added:
Modified:
mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp b/mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
index d31ec52cdb31..f68ea6b7de65 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
@@ -508,7 +508,7 @@ static OpResult getInplaceableOpResult(VectorTransferOpInterface op,
/// when the op is bufferized inplace.
/// Return null if no such result exists.
static OpResult getInplaceableOpResult(InsertSliceOp op, OpOperand &opOperand) {
- if (opOperand.get() != op.dest())
+ if (&opOperand != &op->getOpOperand(1) /*dest*/)
return OpResult();
return op->getResult(0);
}
More information about the Mlir-commits
mailing list