When EmptyTensorElimination eliminates a tensor.empty op, the given OneShotAnalysisState is updated accordingly. This makes is possible to reuse the same state object for One-Shot Bufferize (to address performance bottlenecks).
Depends On: D143379
Paths
| Differential D143404
[mlir][bufferize] EmptyTensorElimination: Keep AnalysisState up to date AcceptedPublic Authored by springerm on Feb 6 2023, 7:40 AM.
Details
Summary When EmptyTensorElimination eliminates a tensor.empty op, the given OneShotAnalysisState is updated accordingly. This makes is possible to reuse the same state object for One-Shot Bufferize (to address performance bottlenecks). Depends On: D143379
Diff Detail
Revision Contents
Diff 495136 mlir/include/mlir/Dialect/Bufferization/Transforms/OneShotAnalysis.h
mlir/include/mlir/Dialect/Bufferization/Transforms/Transforms.h
mlir/lib/Dialect/Bufferization/Transforms/EmptyTensorElimination.cpp
mlir/lib/Dialect/Bufferization/Transforms/OneShotAnalysis.cpp
mlir/test/Dialect/Bufferization/Transforms/one-shot-bufferize-empty-tensor-elimination.mlir
mlir/test/lib/Dialect/Bufferization/CMakeLists.txt
mlir/test/lib/Dialect/Bufferization/TestEmptyTensorElimination.cpp
mlir/tools/mlir-opt/mlir-opt.cpp
utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
|