[PATCH] D94825: [NewPM][Inliner] Move the 'always inliner' case in the same CGSCC pass as 'regular' inliner

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 15 15:05:43 PST 2021


aeubanks added a comment.

overall looks good, just a couple small comments



================
Comment at: llvm/lib/Analysis/InlineAdvisor.cpp:463
+    return getAdviceImpl(CB);
+  bool Advice = CB.getCaller() != CB.getCalledFunction() &&
+                MandatoryInliningKind::Always ==
----------------
I see this check a lot, should this be handled in some common place instead? Like `getMandatoryKind()`?


================
Comment at: llvm/lib/Analysis/MLInlineAdvisor.cpp:254
+                                                                  bool Advice) {
+  // Make sure we track inlinings in all cases - mandatory or not.
+  if (Advice && !ForceStop)
----------------
Is there a reason to track mandatory inlines? Seems like extra noise


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D94825



More information about the llvm-commits mailing list