[all-commits] [llvm/llvm-project] 640090: Fix branch coverage merging in FunctionCoverageSum...
Alan Phipps via All-commits
all-commits at lists.llvm.org
Tue May 11 08:44:38 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6400905a615282c83a2fc6e49e57ff716aa8b4de
https://github.com/llvm/llvm-project/commit/6400905a615282c83a2fc6e49e57ff716aa8b4de
Author: Alan Phipps <a-phipps at ti.com>
Date: 2021-05-11 (Tue, 11 May 2021)
Changed paths:
M llvm/test/tools/llvm-cov/branch-templates.cpp
M llvm/tools/llvm-cov/CoverageSummaryInfo.cpp
M llvm/tools/llvm-cov/CoverageSummaryInfo.h
Log Message:
-----------
Fix branch coverage merging in FunctionCoverageSummary::get() for instantiation
groups.
This change corrects the implementation for the branch coverage
summary to do the same thing for branches that is done for lines and regions.
That is, across function instantiations in an instantiation group, the maximum
branch coverage found in any of those instantiations is returned, with the
total number of branches being the same across instantiations.
Differential Revision: https://reviews.llvm.org/D102193
More information about the All-commits
mailing list