[PATCH] D57849: llvm-dwarfdump: Stop counting out-of-line subprogram in the "inlined functions" statistic.
Caroline Tice via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 7 16:10:15 PST 2019
cmtice updated this revision to Diff 185885.
cmtice added a comment.
I was mistaken before: we were never counting the template parameters. What was happening was that we were counting the variables in both inlined instances, and we were also counting the variables for a concrete, out-of-line instance of the inlined function, even though in this particular case there was no concrete out-of-line instance. I have updated the patch now to only count vars in DW_TAG_subprogram DIEs if the subprogram DIE has PC addresses. I believe this is the correct fix for this issue.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57849/new/
https://reviews.llvm.org/D57849
Files:
test/tools/llvm-dwarfdump/X86/statistics.ll
test/tools/llvm-dwarfdump/X86/stats-inlining-multi-cu.ll
test/tools/llvm-dwarfdump/X86/stats-inlining-single-cu.ll
tools/llvm-dwarfdump/Statistics.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57849.185885.patch
Type: text/x-patch
Size: 4886 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190208/e56ac4d3/attachment.bin>
More information about the llvm-commits
mailing list