[PATCH] D78854: [mlir] Optimize the allocation of resizable operand lists
River Riddle via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 24 21:05:52 PDT 2020
rriddle created this revision.
rriddle added a reviewer: mehdi_amini.
Herald added subscribers: llvm-commits, Kayjukh, frgossen, grosul1, Joonsoo, liufengdb, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, jpienaar.
Herald added a project: LLVM.
This revision optimizes resizable operand lists by allocating them in the same location as the trailing operands. This has numerous benefits:
- If the operation has at least one operand at construction time, there is 0 additional memory overhead to the resizable storage.
- There is less pointer arithmetic necessary as the resizable storage is now only used when the operands are dynamically allocated.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78854
Files:
mlir/include/mlir/IR/OperationSupport.h
mlir/lib/IR/OperationSupport.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78854.260061.patch
Type: text/x-patch
Size: 6945 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200425/16c8e220/attachment-0001.bin>
More information about the llvm-commits
mailing list