By doing so, it is not necessary to get the OpOperand a second time via getAliasingOpOperand. Also, code slightly more readable because we do not have to deal with Optional<> return value.
Depends On D111380
Paths
| Differential D110918
[mlir][linalg][bufferize][NFC] Conflict detection funcs take OpOperand and OpResult ClosedPublic Authored by springerm on Oct 1 2021, 4:00 AM.
Details Summary By doing so, it is not necessary to get the OpOperand a second time via getAliasingOpOperand. Also, code slightly more readable because we do not have to deal with Optional<> return value. Depends On D111380
Diff Detail
Event TimelineHerald added subscribers: wenzhicui, wrengr, Chia-hungDuan and 20 others. · View Herald TranscriptOct 1 2021, 4:00 AM springerm added a child revision: D110940: [mlir][linalg][bufferize] Put buffer copying in separate function.Oct 1 2021, 8:00 AM
springerm added a parent revision: D110916: [mlir][linalg][bufferize][NFC] Simplify getAliasingOpResult(). springerm removed a parent revision: D110917: [mlir][linalg][bufferize][NFC] Merge bufferizableInPlaceAnalysis overloads. springerm retitled this revision from [mlir][linalg][bufferize] Remove special case for ExtractSliceOp from analysis to [mlir][linalg][bufferize] Rewrite wouldCreateWriteToNonWriteableBuffer.Oct 6 2021, 11:02 PM nicolasvasilache added inline comments.
This revision now requires changes to proceed.Oct 6 2021, 11:45 PM
Comment Actions seeing some feature creep here, please split and land the trivial pieces out first and then let's iterate on a more robust API / preconditions.
This revision now requires changes to proceed.Oct 7 2021, 10:39 AM springerm retitled this revision from [mlir][linalg][bufferize] Rewrite wouldCreateWriteToNonWriteableBuffer to [mlir][linalg][bufferize][NFC] Conflict detection funcs take OpOperand and OpResult.Oct 7 2021, 8:19 PM springerm added a parent revision: D111380: [mlir][linalg][bufferize][NFC] Reduce code duplication around bufferizableInPlaceAnalysis. springerm removed a parent revision: D110916: [mlir][linalg][bufferize][NFC] Simplify getAliasingOpResult(). springerm added inline comments.
nicolasvasilache added inline comments.
This revision is now accepted and ready to land.Oct 12 2021, 7:41 AM This revision was landed with ongoing or failed builds.Oct 12 2021, 5:22 PM Closed by commit rGfd3162042022: [mlir][linalg][bufferize][NFC] Conflict detection funcs take OpOperand and… (authored by springerm). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 379228 mlir/include/mlir/Dialect/Linalg/Transforms/ComprehensiveBufferize.h
mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
|
This fix is independent, please split it in a separate revision.