[all-commits] [llvm/llvm-project] 87b467: [mlir][bufferize] Improve resolveConflicts for Ext...
Matthias Springer via All-commits
all-commits at lists.llvm.org
Thu Jun 9 13:19:53 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 87b46776c44e0ef74f97c671eb39c317d8242769
https://github.com/llvm/llvm-project/commit/87b46776c44e0ef74f97c671eb39c317d8242769
Author: Matthias Springer <springerm at google.com>
Date: 2022-06-09 (Thu, 09 Jun 2022)
Changed paths:
M mlir/lib/Dialect/Bufferization/IR/BufferizableOpInterface.cpp
A mlir/test/Dialect/Tensor/one-shot-bufferize-tensor-copy-insertion.mlir
Log Message:
-----------
[mlir][bufferize] Improve resolveConflicts for ExtractSliceOp
It is sometimes better to make a copy of the OpResult instead of making a copy of the OpOperand. E.g., when bufferizing tensor.extract_slice.
This implementation will eventually make parts of extract_slice's `bufferize` implementation obsolete (and simplify it). It will only need to handle in-place OpOperands.
Differential Revision: https://reviews.llvm.org/D126819
More information about the All-commits
mailing list