[PATCH] D77959: [mlir][StorageUniquer] Replace all usages of std::function with function_ref.
River Riddle via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 11 18:40:48 PDT 2020
rriddle created this revision.
rriddle added a reviewer: lattner.
Herald added subscribers: llvm-commits, frgossen, grosul1, Joonsoo, liufengdb, aartbik, lucyrfox, mgester, arpith-jacob, nicolasvasilache, antiagainst, shauheen, burmako, jpienaar, mehdi_amini.
Herald added a project: LLVM.
std::function has a notoriously large amount of malloc traffic, whereas function_ref is a cheaper and more efficient alternative.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D77959
Files:
mlir/include/mlir/IR/AttributeSupport.h
mlir/include/mlir/Support/StorageUniquer.h
mlir/lib/IR/MLIRContext.cpp
mlir/lib/Support/StorageUniquer.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77959.256811.patch
Type: text/x-patch
Size: 7586 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200412/ba219d6e/attachment.bin>
More information about the llvm-commits
mailing list