Reuse getResultBuffer.
Nicolas: Please check if it is OK to use output directly instead of:
Value dimTensor = bvm.lookupOrDefault(output);
Depends On D110940
Paths
| Differential D110941
[mlir][linalg][bufferize][NFC] Simplify allocateBuffersForResults ClosedPublic Authored by springerm on Oct 1 2021, 8:01 AM.
Details Summary Reuse getResultBuffer. Nicolas: Please check if it is OK to use output directly instead of: Value dimTensor = bvm.lookupOrDefault(output); Depends On D110940
Diff Detail
Event TimelineHerald added subscribers: wenzhicui, wrengr, Chia-hungDuan and 20 others. · View Herald TranscriptOct 1 2021, 8:01 AM Comment Actions this seems fine, I cannot remember the layering evolution that made me not reuse code.
This revision is now accepted and ready to land.Oct 5 2021, 3:25 AM Comment Actions
Ah it's because you added that function to refactor stuff and avoid code duplication, makes sense! This revision was landed with ongoing or failed builds.Oct 12 2021, 5:36 PM Closed by commit rG0292236d0cc1: [mlir][linalg][bufferize][NFC] Simplify allocateBuffersForResults (authored by springerm). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 377781 mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
|
nit: wants