[PATCH] D98823: [CSSPGO] Add attribute metadata for context profile

Wenlei He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 17 15:35:55 PDT 2021


wenlei created this revision.
wenlei added reviewers: hoy, wmi, davidxl.
Herald added subscribers: modimo, lxfind, hiraditya.
wenlei requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This changes adds attribute field for metadata of context profile. Currently we have an inline attribute that indicates whether the leaf frame corresponding to a context profile was inlined in previous build.

This will be used to help estimating inlining and be taken into account when trimming context. Changes for that in llvm-profgen will follow. It will also help tuning.

Note that we only populate inline attribute for pseudo-probe profile now.

Test Plan:


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98823

Files:
  llvm/include/llvm/ProfileData/SampleProf.h
  llvm/include/llvm/ProfileData/SampleProfReader.h
  llvm/lib/ProfileData/SampleProfReader.cpp
  llvm/lib/ProfileData/SampleProfWriter.cpp
  llvm/test/tools/llvm-profdata/Inputs/cs-sample.proftext
  llvm/test/tools/llvm-profdata/Inputs/pseudo-probe-profile.proftext
  llvm/test/tools/llvm-profgen/inline-cs-pseudoprobe.test
  llvm/test/tools/llvm-profgen/merge-cold-profile.test
  llvm/test/tools/llvm-profgen/noinline-cs-pseudoprobe.test
  llvm/tools/llvm-profgen/ProfileGenerator.cpp
  llvm/tools/llvm-profgen/ProfileGenerator.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98823.331396.patch
Type: text/x-patch
Size: 17516 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210317/8ae648b4/attachment.bin>


More information about the llvm-commits mailing list