[all-commits] [llvm/llvm-project] eccb92: Reland "[Coverage] Fix branch coverage merging in ...

Alan Phipps via All-commits all-commits at lists.llvm.org
Tue May 11 09:49:14 PDT 2021


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

Originally landed in: 6400905a615282c83a2fc6e49e57ff716aa8b4de
Reverted in: 668dccc396da4f593ac87c92dc0eb7bc983b5762

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