[PATCH] D70584: [AutoFDO] Statistic for context sensitive profile guided inlining

Wenlei He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 22 00:05:11 PST 2019


wenlei created this revision.
wenlei added reviewers: wmi, davidxl.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

AutoFDO compilation has two places that do inlining - the sample profile loader that does inlining with context sensitive profile, and the regular inliner as CGSCC pass. Ideally we want most inlining to come from sample profile loader as that is driven by context sensitive profile and also retains context sensitivity after inlining. However the reality is most of the inlining actually happens during regular inliner. To track the number of inline instances from sample profile loader and help move more inlining to sample profile loader, I'm adding statistics and optimization remarks for sample profile loader's inlining.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70584

Files:
  llvm/lib/Transforms/IPO/SampleProfile.cpp
  llvm/test/Transforms/SampleProfile/inline-stats.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70584.230599.patch
Type: text/x-patch
Size: 7917 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191122/51e45522/attachment.bin>


More information about the llvm-commits mailing list