[PATCH] D72552: [Concepts] Constraint Satisfaction Caching

Saar Raz via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 10 18:56:29 PST 2020


saar.raz created this revision.
saar.raz added a reviewer: rsmith.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

Add a simple cache for constraint satisfaction results. This results in a
major speedup (cjdb measured x2 faster than gcc with this caching, compared
to being 'unbearably slow' without caching) and is conformant with gcc's
implementation.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D72552

Files:
  clang/include/clang/AST/ASTConcept.h
  clang/include/clang/Sema/Sema.h
  clang/include/clang/Sema/TemplateDeduction.h
  clang/lib/AST/ASTConcept.cpp
  clang/lib/Sema/Sema.cpp
  clang/lib/Sema/SemaConcept.cpp
  clang/test/SemaTemplate/cxx2a-constraint-caching.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72552.237474.patch
Type: text/x-patch
Size: 12004 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200111/1eae8772/attachment-0001.bin>


More information about the cfe-commits mailing list