[PATCH] D94334: [InlineAdvisor] Allow replay of inline decisions for the CGSCC inliner from optimization remarks
Mircea Trofin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 8 14:28:56 PST 2021
mtrofin added inline comments.
================
Comment at: llvm/lib/Analysis/ReplayInlineAdvisor.cpp:58
+namespace {
+class ReplayInlineAdvice : public InlineAdvice {
+public:
----------------
wenlei wrote:
> This looks redundant/similar to `DefaultInlineAdvice`, is that just for controlling `EmitRemarks`? ORE should be able to handle remark printing (or not) correctly without extra guard.
Along the same lines as @wenlei 's comment - if the Advisor can both generate and digest the trace of decisions, why rely on ORE and not, instead, use a more structured format that wouldn't need parsing like ReplayInlineAdvisor.cpp:43?
Also (if using ORE is desirable, case in which I share @wenlei's question), I think there's a yaml output format ORE generates, perhaps requiring that as input would also simplify ingestion?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94334/new/
https://reviews.llvm.org/D94334
More information about the llvm-commits
mailing list