[all-commits] [llvm/llvm-project] 39ceea: [NFC] Move FoldingSetNodeIDRef::ComputeHash and Fo...
yurai007 via All-commits
all-commits at lists.llvm.org
Fri Feb 4 09:05:10 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 39ceea26c59a5a33db1c6e2c9dca17e5136d5a20
https://github.com/llvm/llvm-project/commit/39ceea26c59a5a33db1c6e2c9dca17e5136d5a20
Author: Dawid Jurczak <dawid_jurek at vp.pl>
Date: 2022-02-04 (Fri, 04 Feb 2022)
Changed paths:
M llvm/include/llvm/ADT/FoldingSet.h
M llvm/lib/Support/FoldingSet.cpp
Log Message:
-----------
[NFC] Move FoldingSetNodeIDRef::ComputeHash and FoldingSetNodeID::ComputeHash definitions to header
Lack of ComputeHash inlining slows down slightly FoldingSetBase::FindNodeOrInsertPos calls.
Inlining makes it faster which matters in particular for FoldingSet users in ASTContext.
Extracted from: https://reviews.llvm.org/D118385
Differential Revision: https://reviews.llvm.org/D118612
More information about the All-commits
mailing list