[mlir][tensor][bufferize] Improve bufferization of DimOp/RankOp
authorMatthias Springer <springerm@google.com>
Wed, 14 Dec 2022 11:26:29 +0000 (12:26 +0100)
committerMatthias Springer <springerm@google.com>
Wed, 14 Dec 2022 11:47:46 +0000 (12:47 +0100)
commite5dc99e642d05b1075b6c5480a5b3f0485a25038
tree0c15d9bb948a36af34b99d225dbae00b5879d01d
parent17f36648e6d6f543af7a965b7ceab71a1cf69a6b
[mlir][tensor][bufferize] Improve bufferization of DimOp/RankOp

The tensor operands do not bufferize to a memory read.

Differential Revision: https://reviews.llvm.org/D140007
mlir/lib/Dialect/Tensor/Transforms/BufferizableOpInterfaceImpl.cpp
mlir/test/Dialect/Tensor/one-shot-bufferize.mlir