[all-commits] [llvm/llvm-project] 3ff4d7: [llvm-dwarfdump] Fix misleading scope byte coverag...
Orlando Cazalet-Hyams via All-commits
all-commits at lists.llvm.org
Tue Aug 25 01:38:23 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 3ff4d75c9cbffb12c5c690c389e3977ea6811042
https://github.com/llvm/llvm-project/commit/3ff4d75c9cbffb12c5c690c389e3977ea6811042
Author: OCHyams <orlando.hyams at sony.com>
Date: 2020-08-25 (Tue, 25 Aug 2020)
Changed paths:
M llvm/test/tools/llvm-dwarfdump/X86/statistics-dwo.test
M llvm/test/tools/llvm-dwarfdump/X86/statistics-v3.test
M llvm/test/tools/llvm-dwarfdump/X86/statistics.ll
A llvm/test/tools/llvm-dwarfdump/X86/stats-scope-bytes-covered.yaml
M llvm/tools/llvm-dwarfdump/Statistics.cpp
Log Message:
-----------
[llvm-dwarfdump] Fix misleading scope byte coverage statistics
Fixes PR46575.
Bump statistics version to 6.
Without this patch, for a variable described with a location list the stat
'sum_all_variables(#bytes in parent scope covered by DW_AT_location)' is
calculated by summing all bytes covered by the location ranges in the list and
capping the result to the number of bytes in the parent scope. With the patch,
only bytes which overlap with the parent DIE scope address ranges contribute to
the stat. A new stat 'sum_all_variables(#bytes in any scope covered by
DW_AT_location)' has been added which displays the total bytes covered when
ignoring scopes.
More information about the All-commits
mailing list