[all-commits] [llvm/llvm-project] 9fd9b5: Don't emit coverage mapping for excluded functions

Petr Hosek via All-commits all-commits at lists.llvm.org
Fri Feb 5 13:04:21 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9fd9b5a9c9ece53ce36ec87e7dc8389d0f572476
      https://github.com/llvm/llvm-project/commit/9fd9b5a9c9ece53ce36ec87e7dc8389d0f572476
  Author: Petr Hosek <phosek at google.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M clang/lib/CodeGen/CodeGenPGO.cpp
    M clang/test/CodeGen/profile-filter.c

  Log Message:
  -----------
  Don't emit coverage mapping for excluded functions

When a function or a file is excluded using -fprofile-list= option,
don't emit coverage mapping as doing so confuses users since those
functions would always have zero count. This also reduces the binary
size considerably in cases where only a few functions or files are
being instrumented.

Differential Revision: https://reviews.llvm.org/D96000




More information about the All-commits mailing list