[PATCH] D77426: [SampleFDO] Add flag for non-dedicated profile.

Wei Mi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 3 12:26:32 PDT 2020


wmi created this revision.
wmi added reviewers: davidxl, wenlei.
Herald added subscribers: hiraditya, eraman.

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 dedicatedly. There are some cases that no profile can be collected for a target. In those cases, although no dedicated profile is available, it is possible to have some generic profile to optimize common libraries and utilities. A flag is needed to tell the non-dedicated profile from the dedicated profile apart, so compiler can use different strategy for them.


Repository:
  rL LLVM

https://reviews.llvm.org/D77426

Files:
  llvm/include/llvm/IR/ProfileSummary.h
  llvm/include/llvm/ProfileData/SampleProf.h
  llvm/include/llvm/ProfileData/SampleProfWriter.h
  llvm/lib/ProfileData/SampleProfReader.cpp
  llvm/test/tools/llvm-profdata/show-prof-info.test
  llvm/test/tools/llvm-profdata/show-prof-size.test
  llvm/tools/llvm-profdata/llvm-profdata.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77426.254884.patch
Type: text/x-patch
Size: 8813 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200403/773993be/attachment-0001.bin>


More information about the llvm-commits mailing list