================
@@ -1532,12 +1533,17 @@ DiagnosticsEngine &ASTContext::getDiagnostics() const {
}
AttrVec& ASTContext::getDeclAttrs(const Decl *D) {
+ if (LastDeclAttrsDecl == D)
----------------
zmodem wrote:
Maybe add a short comment about why having a cache here is beneficial? ("85% of
lookups use the most recent D")
https://github.com/llvm/llvm-project/pull/226610
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits