1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/tools/llvm-cov
Vedant Kumar b939a54424 [llvm-cov] Avoid over-counting covered lines and regions
* Fix an unsigned integer overflow in the logic that computes the
  number of uncovered lines in a function.

* When aggregating region and line coverage summaries, take into account
  that different instantiations may have a different number of regions.

The new test case provides test coverage for both bugs. I also verified
this change by preparing a coverage report for a stage2 build of llc --
the new assertions should detect any outstanding over-counting bugs.

Fixes PR34613.

llvm-svn: 313417
2017-09-15 23:00:02 +00:00
..
CMakeLists.txt Retry: [llvm-cov] Add support for exporting coverage data to JSON 2016-07-26 22:50:58 +00:00
CodeCoverage.cpp Convenience/safety fix for llvm::sys::Execute(And|No)Wait 2017-09-13 17:03:37 +00:00
CoverageExporterJson.cpp [llvm-cov] Make some summary info fields private. NFC. 2017-09-15 23:00:01 +00:00
CoverageFilters.cpp [llvm-cov] Read in function names for filtering from a text file. 2017-08-31 09:11:31 +00:00
CoverageFilters.h [llvm-cov] Read in function names for filtering from a text file. 2017-08-31 09:11:31 +00:00
CoverageReport.cpp [llvm-cov] Make some summary info fields private. NFC. 2017-09-15 23:00:01 +00:00
CoverageReport.h [llvm-cov] Fix a lifetime issue 2017-09-08 18:44:49 +00:00
CoverageSummaryInfo.cpp [llvm-cov] Avoid over-counting covered lines and regions 2017-09-15 23:00:02 +00:00
CoverageSummaryInfo.h [llvm-cov] Avoid over-counting covered lines and regions 2017-09-15 23:00:02 +00:00
CoverageViewOptions.h [llvm-cov] Allow hiding instantiation/region coverage from summary tables 2017-09-11 22:56:20 +00:00
gcov.cpp Cleanup dump() functions. 2017-01-28 02:02:38 +00:00
llvm-cov.cpp Retry: [llvm-cov] Add support for exporting coverage data to JSON 2016-07-26 22:50:58 +00:00
LLVMBuild.txt Move coverage related code into a separate library. 2016-04-29 18:53:05 +00:00
RenderingSupport.h NFC, add an "end namespace" comment for consistency 2016-06-23 16:27:08 +00:00
SourceCoverageView.cpp [llvm-cov] Don't attach exec counts to lines which start a skipped region 2017-09-11 21:31:32 +00:00
SourceCoverageView.h [llvm-cov] Unify region marker placement between text/html modes 2017-09-08 18:44:46 +00:00
SourceCoverageViewHTML.cpp [llvm-cov] Make some summary info fields private. NFC. 2017-09-15 23:00:01 +00:00
SourceCoverageViewHTML.h [llvm-cov] Rearrange entries in report index. 2017-08-09 20:43:31 +00:00
SourceCoverageViewText.cpp [llvm-cov] Unify region marker placement between text/html modes 2017-09-08 18:44:46 +00:00
SourceCoverageViewText.h [llvm-cov] Get rid of all invalid filename references 2016-09-23 18:57:32 +00:00
TestingSupport.cpp [ProfileData] Unify getInstrProf*SectionName helpers 2017-04-15 00:09:57 +00:00