[mlir][bufferization] Support multiple leaves in EmptyTensorElimination
authorMatthias Springer <springerm@google.com>
Fri, 10 Feb 2023 08:30:21 +0000 (09:30 +0100)
committerMatthias Springer <springerm@google.com>
Fri, 10 Feb 2023 08:38:47 +0000 (09:38 +0100)
commit2441c0730603eb6a543dae56c14c3e1ccb08fb55
tree2f1cd43e908a5911fb315c7b6a0cd4f186995d9a
parentf4ef08433fe78c31493688f5ab608b2f9689f478
[mlir][bufferization] Support multiple leaves in EmptyTensorElimination

Support cases where a source tensor can be traced back to multiple possible tensor.empty ops.

Differential Revision: https://reviews.llvm.org/D142130
mlir/lib/Dialect/Bufferization/Transforms/EmptyTensorElimination.cpp
mlir/test/Dialect/Bufferization/Transforms/one-shot-bufferize-empty-tensor-elimination.mlir