[PATCH] D110363: [DWARF][NFC] add ParentIdx and SiblingIdx to DWARFDebugInfoEntry for faster navigation.
Alexey Lapshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 23 14:00:37 PDT 2021
avl created this revision.
avl added reviewers: clayborg, dblaikie, JDevlieghere, simon.giesecke.
Herald added a subscriber: hiraditya.
avl requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
This patch implements suggestion done while reviewing D102634 <https://reviews.llvm.org/D102634>. It adds two fields:
ParentIdx and SiblingIdx. These fields allow fast navigation to die parent and
die sibling. These fields are set at the moment when dies are loaded.
dsymutil works 2% faster with this patch(run on clang binary).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D110363
Files:
llvm/include/llvm/DebugInfo/DWARF/DWARFDebugInfoEntry.h
llvm/lib/DebugInfo/DWARF/DWARFDebugInfoEntry.cpp
llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
llvm/unittests/DebugInfo/DWARF/DWARFDieManualExtractTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110363.374661.patch
Type: text/x-patch
Size: 11543 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210923/bac93465/attachment.bin>
More information about the llvm-commits
mailing list