To keep the pass simple, users should apply cleanup passes manually when necessary. In particular, -cse -canonicalize are often desireable to fold away self-copies that are created by the bufferization.
This addresses a comment in D120191.
Paths
| Differential D155923
[mlir][bufferization] Remove cleanup pipeline from bufferization pass ClosedPublic Authored by springerm on Jul 21 2023, 1:28 AM.
Details Summary To keep the pass simple, users should apply cleanup passes manually when necessary. In particular, -cse -canonicalize are often desireable to fold away self-copies that are created by the bufferization. This addresses a comment in D120191.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 21 2023, 2:46 AM Closed by commit rGba745eea40a2: [mlir][bufferization] Remove cleanup pipeline from bufferization pass (authored by springerm). · Explain WhyJul 21 2023, 3:17 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 542848 mlir/lib/Dialect/Arith/Transforms/BufferizableOpInterfaceImpl.cpp
mlir/lib/Dialect/Bufferization/Transforms/Bufferize.cpp
mlir/test/Dialect/Bufferization/Transforms/one-shot-bufferize-empty-tensor-elimination.mlir
mlir/test/Dialect/Bufferization/Transforms/one-shot-bufferize-partial.mlir
mlir/test/Dialect/Bufferization/Transforms/one-shot-bufferize.mlir
mlir/test/Dialect/Bufferization/Transforms/one-shot-module-bufferize.mlir
mlir/test/Dialect/Linalg/one-shot-bufferize.mlir
mlir/test/Dialect/SCF/one-shot-bufferize.mlir
mlir/test/Dialect/Tensor/one-shot-bufferize.mlir
|