[PATCH] D109104: [CSSPGO] Allow inlining recursive call for preinliner

Wenlei He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 2 08:52:35 PDT 2021


wenlei added inline comments.


================
Comment at: llvm/lib/Transforms/IPO/SampleProfile.cpp:1290
+  // TODO: Evaluate if this is helpful for AutoFDO too in general.
+  Params.AllowRecursiveCall = ProfileIsCS && UsePreInlinerDecision;
   // Checks if there is anything in the reachable portion of the callee at
----------------
hoy wrote:
> Should this also be enabled for csspgo without preliner?
Hmm.. actually this is what it currently does. UsePreInlinerDecision is on by default for CSSPGO. So basically, we have `sample-profile-use-preinliner` indirectly controls whether we allow recursive inline. Do you think we should have separate switch just for recursive inlining? That probably makes experimenting with AutoFDO a bit easier too.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109104/new/

https://reviews.llvm.org/D109104



More information about the llvm-commits mailing list