[all-commits] [llvm/llvm-project] 9785eb: [mlir][bufferize] Disallow adding new bufferizable...
Matthias Springer via All-commits
all-commits at lists.llvm.org
Fri May 6 02:42:06 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9785eb1b98b5bf72d6613b408259bc5bda125d76
https://github.com/llvm/llvm-project/commit/9785eb1b98b5bf72d6613b408259bc5bda125d76
Author: Matthias Springer <springerm at google.com>
Date: 2022-05-06 (Fri, 06 May 2022)
Changed paths:
M mlir/lib/Dialect/Bufferization/IR/BufferizableOpInterface.cpp
M mlir/lib/Dialect/Bufferization/Transforms/Bufferize.cpp
Log Message:
-----------
[mlir][bufferize] Disallow adding new bufferizable ops during bufferization
Ops that are created during the bufferization were not analyzed (when run with One-Shot Bufferize), and users should instead create memref ops directly.
Futhermore, this fixes an issue where an op was erased (and put on the `erasedOps` list), but subsequently a new tensor op was created at the same memory location. This op was then not bufferized. Disallowing the creation of new tensor ops simplifies the bufferization and fixes such issues.
Differential Revision: https://reviews.llvm.org/D125017
More information about the All-commits
mailing list