1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/tools/llvm-cov
Vedant Kumar d0e8e6729c [llvm-cov] Ignore unclosed line segments when setting line counts
This patch makes a slight change to the way llvm-cov determines line
execution counts. If there are multiple line segments on a line, the
line count is the max count among the regions which start *and* end on
the line. This avoids an issue posed by deferred regions which start on
the same line as a terminated region, e.g:

  if (false)
    return; //< The line count should be 0, even though a new region
            //< starts at the semi-colon.
  foo();

Another change is that counts from line segments which don't correspond
to region entries are considered. This enables the first change, and
corrects an outstanding issue (see the showLineExecutionCounts.cpp test
change).

This is related to D35925.

Testing: check-profile, llvm-cov lit tests

Differential Revision: https://reviews.llvm.org/D36014

llvm-svn: 310012
2017-08-04 00:36:24 +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 [llvm-cov] NFC: make_unique-ify two allocations 2017-08-04 00:36:24 +00:00
CoverageExporterJson.cpp [llvm-cov] Do not print out the filename of the object file 2016-10-25 00:08:33 +00:00
CoverageFilters.cpp
CoverageFilters.h
CoverageReport.cpp [Coverage] Add an API to retrive all instantiations of a function (NFC) 2017-08-02 23:35:25 +00:00
CoverageReport.h [llvm-cov] Demangle symbols in function summaries (fixes PR31394) 2017-02-05 20:11:03 +00:00
CoverageSummaryInfo.cpp [Coverage] Add an API to retrive all instantiations of a function (NFC) 2017-08-02 23:35:25 +00:00
CoverageSummaryInfo.h [Coverage] Add an API to retrive all instantiations of a function (NFC) 2017-08-02 23:35:25 +00:00
CoverageViewOptions.h [llvm-cov] Do not print out the filename of the object file 2016-10-25 00:08:33 +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
RenderingSupport.h
SourceCoverageView.cpp [llvm-cov] Ignore unclosed line segments when setting line counts 2017-08-04 00:36:24 +00:00
SourceCoverageView.h [llvm-cov] Ignore unclosed line segments when setting line counts 2017-08-04 00:36:24 +00:00
SourceCoverageViewHTML.cpp [llvm-cov] Avoid 0% when reporting something that's 0/0 2016-11-21 14:00:04 +00:00
SourceCoverageViewHTML.h [llvm-cov] Get rid of all invalid filename references 2016-09-23 18:57:32 +00:00
SourceCoverageViewText.cpp [llvm-cov] Do not print out the filename of the object file 2016-10-25 00:08:33 +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