This is an archive of the discontinued LLVM Phabricator instance.

[NFC] Move FoldingSetNodeID::AddInteger and FoldingSetNodeID::AddPointer definitions to header
ClosedPublic

Authored by yurai007 on Jan 31 2022, 7:44 AM.

Details

Summary

Lack of AddInteger/AddPointer inlining slows down NodeEquals/Profile/:operator== calls.
Inlining makes FunctionProtoTypes/PointerTypes/ElaboratedTypes/ParenTypes Profile functions faster
but since NodeEquals is still called indirectly through function pointer from FindNodeOrInsertPos there is room for further inlining improvements.

Extracted from: https://reviews.llvm.org/D118385

Diff Detail

Event Timeline

yurai007 created this revision.Jan 31 2022, 7:44 AM
yurai007 requested review of this revision.Jan 31 2022, 7:44 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 31 2022, 7:44 AM
yurai007 edited the summary of this revision. (Show Details)Jan 31 2022, 7:44 AM
This revision is now accepted and ready to land.Jan 31 2022, 7:49 AM
This revision was landed with ongoing or failed builds.Feb 3 2022, 6:35 AM
This revision was automatically updated to reflect the committed changes.