Go to file
Vedant Kumar 846b985a92 [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
clang [Coverage] Precise region termination with deferred regions 2017-08-04 00:29:20 +00:00
clang-tools-extra [test] Fix clang library dir in LD_LIBRARY_PATH For stand-alone build 2017-08-03 19:41:33 +00:00
compiler-rt [builtins] Use Interlocked* intrinsics for atomics on MSVC 2017-08-03 19:04:28 +00:00
debuginfo-tests Add a test for PR33166. 2017-05-25 19:33:16 +00:00
libclc configure.py: Make python3 friendly 2017-08-02 15:00:59 +00:00
libcxx Fix libcxx build with glibc 2.26+ by removing xlocale.h include. 2017-08-03 04:28:10 +00:00
libcxxabi [demangler] Fix another bug found by oss-fuzz in r309340 2017-08-01 02:38:41 +00:00
libunwind Partial fix for PR33858 2017-07-26 18:13:57 +00:00
lld [PDB] Loosen checks for section contribution sizes 2017-08-03 21:20:41 +00:00
lldb Cut and paste error from r23162. 2017-08-03 19:38:38 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm [llvm-cov] Ignore unclosed line segments when setting line counts 2017-08-04 00:36:24 +00:00
openmp Exclude version symbols for static libomp 2017-08-02 20:10:00 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [VirtualInstruction] Handle MetadataAsValue as constant. 2017-08-03 22:00:01 +00:00