[PATCH] D73004: llvm-dwarfdump][Statistics] Make calculations of vars in global scope more accurate
Kristina Bessonova via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 19 08:59:05 PST 2020
krisb created this revision.
krisb added reviewers: djtodoro, aprantl.
krisb added a project: debug-info.
Herald added a reviewer: jhenderson.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
krisb added a parent revision: D72797: [llvm-dwarfdump][Statistics] Distinguish functions/variables with same name across different CUs.
It isn't known how many times we've seen the same variable or member in
the global scope (unlike in functions), but there still can be some duplicates
among different CUs.
So, this patch proposes to count variables in the global scope just as a sum of
the number of vars, constant members and artificial entities.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D73004
Files:
llvm/test/tools/llvm-dwarfdump/X86/stats-multiple-cu-members.ll
llvm/tools/llvm-dwarfdump/Statistics.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73004.238996.patch
Type: text/x-patch
Size: 6746 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200119/b68b4348/attachment.bin>
More information about the llvm-commits
mailing list