[all-commits] [llvm/llvm-project] cf2cf1: [Profile] Allow online merging with debug info cor...

Zequan Wu via All-commits all-commits at lists.llvm.org
Mon Aug 14 12:15:16 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cf2cf195d5fb0a07c122c5c274bd6deb0790e015
  Author: Zequan Wu <zequanwu at google.com>
  Date:   2023-08-14 (Mon, 14 Aug 2023)

  Changed paths:
    M clang/lib/CodeGen/BackendUtil.cpp
    M compiler-rt/lib/profile/InstrProfilingMerge.c
    M compiler-rt/test/profile/Darwin/instrprof-debug-info-correlate.c
    M compiler-rt/test/profile/Linux/instrprof-debug-info-correlate.c
    M compiler-rt/test/profile/instrprof-merge-error.c

  Log Message:
  [Profile] Allow online merging with debug info correlation.

When using debug info correlation, value profiling needs to be switched off.
So, we are only merging counter sections. In that case the existance of data
section is just used to provide an extra check in case of corrupted profile.

This patch performs counter merging by iterating the counter section by counter
size and add them together.

Reviewed By: ellis, MaskRay

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

More information about the All-commits mailing list