[PATCH] D78876: [mlir] Don't allocate an operand storage if the operation is known to never have operands
River Riddle via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 26 02:38:58 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.
Certain classes of operations, such as FuncOp, are known to never have operands. This revision adds a bit to operation to detect this case and avoid allocating the unnecessary operand storage. This saves 1 word for each instance of these operations.
Depends On D78875 <https://reviews.llvm.org/D78875>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78876
Files:
mlir/include/mlir/IR/Operation.h
mlir/lib/IR/Operation.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78876.260155.patch
Type: text/x-patch
Size: 5853 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200426/9d1e9c10/attachment.bin>
More information about the llvm-commits
mailing list