Skip to content

Commit 94213bc

Browse files
[mlir][linalg][bufferize] Fix bug in getInplaceableOpResult
Differential Revision: https://reviews.llvm.org/D112123
1 parent 7a7e93f commit 94213bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ static OpResult getInplaceableOpResult(VectorTransferOpInterface op,
508508
/// when the op is bufferized inplace.
509509
/// Return null if no such result exists.
510510
static OpResult getInplaceableOpResult(InsertSliceOp op, OpOperand &opOperand) {
511-
if (opOperand.get() != op.dest())
511+
if (&opOperand != &op->getOpOperand(1) /*dest*/)
512512
return OpResult();
513513
return op->getResult(0);
514514
}

0 commit comments

Comments
 (0)