[PATCH] D36014: [llvm-cov] Ignore unclosed line segments when setting line counts
Vedant Kumar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 28 12:44:17 PDT 2017
vsk created this revision.
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:
return; //< The line count should be 0, even though a new region
//< starts at the semi-colon.
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
This is related to https://reviews.llvm.org/D35925.
Testing: check-profile, llvm-cov lit tests
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 8016 bytes
Desc: not available
More information about the llvm-commits