[PATCH] D80202: [ASTMatchers] Performance optimization for memoization

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 19 04:17:35 PDT 2020


njames93 created this revision.
njames93 added a reviewer: klimek.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

A simple optimization to avoid unnecessary copies of BoundNodesTreeBuilders when querying the cache for memoized matchers.
This hasn't been benchmarked as I'm unsure how the memoized matchers were first benchmarked so it shouldn't be merged unless there is a performance improvement.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D80202

Files:
  clang/lib/ASTMatchers/ASTMatchFinder.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80202.264846.patch
Type: text/x-patch
Size: 4462 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200519/056751ac/attachment-0001.bin>


More information about the cfe-commits mailing list