[all-commits] [llvm/llvm-project] e3ba65: [SampleFDO] Add flag for partial profile.

wmi-11 via All-commits all-commits at lists.llvm.org
Tue Apr 7 12:18:20 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: e3ba652a1440794eff0b43ce747f1b0488585d22
      https://github.com/llvm/llvm-project/commit/e3ba652a1440794eff0b43ce747f1b0488585d22
  Author: Wei Mi <wmi at google.com>
  Date:   2020-04-07 (Tue, 07 Apr 2020)

  Changed paths:
    M llvm/include/llvm/IR/ProfileSummary.h
    M llvm/include/llvm/ProfileData/SampleProf.h
    M llvm/include/llvm/ProfileData/SampleProfWriter.h
    M llvm/lib/ProfileData/SampleProfReader.cpp
    A llvm/test/tools/llvm-profdata/show-prof-info.test
    R llvm/test/tools/llvm-profdata/show-prof-size.test
    M llvm/tools/llvm-profdata/llvm-profdata.cpp

  Log Message:
  -----------
  [SampleFDO] Add flag for partial profile.

The common profile usage is to collect profile from a target and then use the profile to guide the optimized build for the same target. There are some cases that no profile can be collected for a target. In those cases, although no full profile is available, it is possible to have some partial profile collected from other targets to optimize common libraries and utilities. A flag is needed to tell the partial profile from the full profile apart, so compiler can use different strategy for them.

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




More information about the All-commits mailing list