[PATCH] D83743: [InlineAdvisor] New inliner advisor to replay inlining from optimization remarks

Wenlei He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 13 22:16:52 PDT 2020


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

This change added a new inline advisor that takes optimization remarks for previous inlining as input, and provide the decision as advice so current inlining can replay inline decision of a different compilation. Dwarf inline stack with line and discriminator is used as anchor for call sites. The change can be useful for Inliner tuning.
A switch -sample-profile-inline-replay=<inline_remarks_file> is added to hook up the new inliner advisor with SampleProfileLoader's inline decision for replay. The new inline advisor can also be used by regular CGSCC inliner later if needed.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D83743

Files:
  llvm/include/llvm/Analysis/InlineAdvisor.h
  llvm/lib/Analysis/InlineAdvisor.cpp
  llvm/lib/Transforms/IPO/SampleProfile.cpp
  llvm/test/Transforms/SampleProfile/Inputs/inline-replay.txt
  llvm/test/Transforms/SampleProfile/inline-replay.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83743.277666.patch
Type: text/x-patch
Size: 13808 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200714/0c349b1e/attachment.bin>


More information about the llvm-commits mailing list