[mlir][linalg][bufferize][NFC] InsertSliceOp no-copy detection as PostAnalysis
authorMatthias Springer <springerm@google.com>
Fri, 26 Nov 2021 13:13:28 +0000 (22:13 +0900)
committerMatthias Springer <springerm@google.com>
Fri, 26 Nov 2021 13:19:29 +0000 (22:19 +0900)
commitb62b21b98019b46af91365cb6415f8e740cab898
treee230df621971487e62d7f7fe0335174aefa2e82c
parentcd0ca5a0eaa1b75b445e82753ea093bbb8e7e85c
[mlir][linalg][bufferize][NFC] InsertSliceOp no-copy detection as PostAnalysis

There is special logic for InsertSliceOp to check if a memcpy is needed. This change extracts that piece of code and makes it a PostAnalysisStep.

The purpose of this change is to untangle `bufferize` from BufferizationAliasInfo. (Not fully there yet.)

Differential Revision: https://reviews.llvm.org/D114513
mlir/include/mlir/Dialect/Linalg/ComprehensiveBufferize/TensorInterfaceImpl.h
mlir/lib/Dialect/Linalg/ComprehensiveBufferize/TensorInterfaceImpl.cpp
mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferizePass.cpp