[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
Loading
Please sign in to comment