[all-commits] [llvm/llvm-project] 464dfe: [mlir][tensor][bufferize] `tensor.empty` bufferize...
Matthias Springer via All-commits
all-commits at lists.llvm.org
Tue Oct 3 07:00:51 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 464dfeba440bc1199e1a91e0c04b2dcfa8362f86
https://github.com/llvm/llvm-project/commit/464dfeba440bc1199e1a91e0c04b2dcfa8362f86
Author: Matthias Springer <me at m-sp.org>
Date: 2023-10-03 (Tue, 03 Oct 2023)
Changed paths:
M mlir/lib/Dialect/Tensor/Transforms/BufferizableOpInterfaceImpl.cpp
M mlir/test/Dialect/Tensor/bufferize.mlir
Log Message:
-----------
[mlir][tensor][bufferize] `tensor.empty` bufferizes to an allocation (#68080)
Make `tensor.empty` bufferizable, so that the
`-empty-tensor-to-alloc-tensor` pass becomes optional. This makes the
bufferization easier to use. `tensor.empty` used to be non-bufferizable,
so that there two separate ops, one that can be optimized away
(`tensor.empty`) and one that is guaranteed to bufferize to an
allocation (`bufferization.alloc_tensor`). With the recent improvements
of "empty tensor elimination" this is no longer needed and
`bufferization.alloc_tensor` can be phased out.
More information about the All-commits
mailing list