[all-commits] [llvm/llvm-project] b89942: [Coverage] Fix branch coverage merging in Function...

Alan Phipps via All-commits all-commits at lists.llvm.org
Tue May 11 11:07:37 PDT 2021


  Branch: refs/heads/release/12.x
  Home:   https://github.com/llvm/llvm-project
  Commit: b89942c336a4506dabd5e1b2a6f1b5cbaddebe55
      https://github.com/llvm/llvm-project/commit/b89942c336a4506dabd5e1b2a6f1b5cbaddebe55
  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:
  -----------
  [Coverage] Fix branch coverage merging in FunctionCoverageSummary::get() for instantiation

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

(cherry picked from commit eccb925147d5f262a3e74cc050d0665dd4e6d8db)




More information about the All-commits mailing list