[mlir][tensor][bufferize] tensor.empty does not define the result tensor contents
authorMatthias Springer <springerm@google.com>
Mon, 6 Feb 2023 09:19:22 +0000 (10:19 +0100)
committerMatthias Springer <springerm@google.com>
Mon, 6 Feb 2023 09:26:38 +0000 (10:26 +0100)
commit330372f2c58de12d711062f298c6472fc6a51fc5
tree9d7402547a0811f2ac489f0498d306f15e11cb9c
parentdefa9b8d5a05cebe9757e7ef8296638e2485a167
[mlir][tensor][bufferize] tensor.empty does not define the result tensor contents

This is encoded in the `BufferizableOpInterface` via `resultBufferizesToMemoryWrite = false`.

Differential Revision: https://reviews.llvm.org/D143181
mlir/lib/Dialect/Tensor/Transforms/BufferizableOpInterfaceImpl.cpp