forked from OSchip/llvm-project
[mlir][linalg][bufferize] Fix bug in getInplaceableOpResult
Differential Revision: https://reviews.llvm.org/D112123
This commit is contained in:
parent
7a7e93f122
commit
94213bc7de
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue