[PATCH] D118060: [llvm-profgen] Always generate line-number based profile under --fill-zero-for-all-funcs

Hongtao Yu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 24 11:12:49 PST 2022


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

The swtich --fill-zero-for-all-funcs is used to generate an empty profile that can be used by downstream tools to compute an inline deicison tree out of a binary. Since the probe-based non-cs profile generation is not supported, I'm making it fall back to line-based profile generation.

Test Plan:


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D118060

Files:
  llvm/test/tools/llvm-profgen/inline-noprobe.test
  llvm/test/tools/llvm-profgen/zero-all-functions.test
  llvm/tools/llvm-profgen/ProfileGenerator.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118060.402602.patch
Type: text/x-patch
Size: 4540 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220124/7c44a1d2/attachment.bin>


More information about the llvm-commits mailing list