[llvm] r373469 - [llvm-dwarfdump] Fix dumping of wrong locstats map
Djordje Todorovic via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 2 06:24:45 PDT 2019
Author: djtodoro
Date: Wed Oct 2 06:24:45 2019
New Revision: 373469
URL: http://llvm.org/viewvc/llvm-project?rev=373469&view=rev
Log:
[llvm-dwarfdump] Fix dumping of wrong locstats map
Modified:
llvm/trunk/test/tools/llvm-dwarfdump/X86/locstats.ll
llvm/trunk/tools/llvm-dwarfdump/Statistics.cpp
Modified: llvm/trunk/test/tools/llvm-dwarfdump/X86/locstats.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-dwarfdump/X86/locstats.ll?rev=373469&r1=373468&r2=373469&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-dwarfdump/X86/locstats.ll (original)
+++ llvm/trunk/test/tools/llvm-dwarfdump/X86/locstats.ll Wed Oct 2 06:24:45 2019
@@ -71,7 +71,7 @@
; CHECK: "vars with 80-89% of its scope covered":1
; CHECK: "vars with 90-99% of its scope covered":0
; CHECK: "vars with 100% of its scope covered":1
-; CHECK: "vars (excluding the debug entry values) with 0% of its scope covered":0
+; CHECK: "vars (excluding the debug entry values) with 0% of its scope covered":1
; CHECK: "vars (excluding the debug entry values) with 1-9% of its scope covered":0
; CHECK: "vars (excluding the debug entry values) with 10-19% of its scope covered":0
; CHECK: "vars (excluding the debug entry values) with 20-29% of its scope covered":0
@@ -80,9 +80,9 @@
; CHECK: "vars (excluding the debug entry values) with 50-59% of its scope covered":1
; CHECK: "vars (excluding the debug entry values) with 60-69% of its scope covered":0
; CHECK: "vars (excluding the debug entry values) with 70-79% of its scope covered":0
-; CHECK: "vars (excluding the debug entry values) with 80-89% of its scope covered":0
+; CHECK: "vars (excluding the debug entry values) with 80-89% of its scope covered":1
; CHECK: "vars (excluding the debug entry values) with 90-99% of its scope covered":0
-; CHECK: "vars (excluding the debug entry values) with 100% of its scope covered":1}
+; CHECK: "vars (excluding the debug entry values) with 100% of its scope covered":1
;
; The source code of the test case:
; extern void fn3(int *);
Modified: llvm/trunk/tools/llvm-dwarfdump/Statistics.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-dwarfdump/Statistics.cpp?rev=373469&r1=373468&r2=373469&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-dwarfdump/Statistics.cpp (original)
+++ llvm/trunk/tools/llvm-dwarfdump/Statistics.cpp Wed Oct 2 06:24:45 2019
@@ -600,7 +600,7 @@ bool collectStatsForObjectFile(ObjectFil
printDatum(OS, "total vars procesed by location statistics", LocStats.NumVar);
printLocationStats(OS, "vars", LocStats.VarLocStats);
printLocationStats(OS, "vars (excluding the debug entry values)",
- LocStats.ParamNonEntryValLocStats);
+ LocStats.VarNonEntryValLocStats);
OS << "}\n";
LLVM_DEBUG(
llvm::dbgs() << "Total Availability: "
More information about the llvm-commits
mailing list