[mlir][bufferization] Fix bug in findValueInReverseUseDefChain
authorMatthias Springer <springerm@google.com>
Thu, 16 Feb 2023 15:05:58 +0000 (16:05 +0100)
committerMatthias Springer <springerm@google.com>
Thu, 16 Feb 2023 15:12:31 +0000 (16:12 +0100)
commite44f405bb41b8acf8ef28c4e41bc06429e87f3c3
tree8a45740944c41d6de486867a1f921308616d4568
parent4565bc00de6e5eedc2a87e1e7c1088a34e74dc3a
[mlir][bufferization] Fix bug in findValueInReverseUseDefChain

`alwaysIncludeLeaves` was not respected by all code paths.

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