[all-commits] [llvm/llvm-project] 060c8b: [mlir][OneShotModuleBufferize] Add a new flag: no...
amrami via All-commits
all-commits at lists.llvm.org
Tue Jan 31 01:26:30 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 060c8be51bdfd61734e06d9df713f37d354207a8
https://github.com/llvm/llvm-project/commit/060c8be51bdfd61734e06d9df713f37d354207a8
Author: Maya Amrami <mayaam88 at gmail.com>
Date: 2023-01-31 (Tue, 31 Jan 2023)
Changed paths:
M mlir/include/mlir/Dialect/Bufferization/Transforms/OneShotModuleBufferize.h
M mlir/include/mlir/Dialect/Bufferization/Transforms/Passes.td
M mlir/lib/Dialect/Bufferization/Transforms/Bufferize.cpp
M mlir/lib/Dialect/Bufferization/Transforms/OneShotModuleBufferize.cpp
A mlir/test/Dialect/Bufferization/Transforms/one-shot-module-bufferize-force-copy-before-write.mlir
Log Message:
-----------
[mlir][OneShotModuleBufferize] Add a new flag: no-analysis-func-filter
OneShotModuleBufferize fails if the input IR cannot be analyzed.
One can set CopyBeforeWrite=true in order to skip analysis.
In that case, a buffer copy is inserted on every write.
This leads to many copies, also in FuncOps that could be analyzed.
This change aims to copy buffers only when it is a must.
When running OneShotModuleBufferize with CopyBeforeWrite=false,
FuncOps whose names are specified in noAnalysisFuncFilter will not be
analyzed. Ops in these FuncOps will not be analyzed as well.
They will be bufferized with CopyBeforeWrite=true,
while the other ops will be bufferized with CopyBeforeWrite=false.
Reviewed By: springerm
Differential Revision: https://reviews.llvm.org/D142631
More information about the All-commits
mailing list