[PATCH] D94825: [NewPM][Inliner] Move the 'always inliner' case in the same CGSCC pass as 'regular' inliner
Arthur Eubanks via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 15 15:18:53 PST 2021
aeubanks accepted this revision.
aeubanks added inline comments.
This revision is now accepted and ready to land.
================
Comment at: llvm/lib/Analysis/InlineAdvisor.cpp:463
+ return getAdviceImpl(CB);
+ bool Advice = CB.getCaller() != CB.getCalledFunction() &&
+ MandatoryInliningKind::Always ==
----------------
mtrofin wrote:
> aeubanks wrote:
> > I see this check a lot, should this be handled in some common place instead? Like `getMandatoryKind()`?
> this is the recursion avoidance test. it's separate from mandatory - I suppose we can factor it upfront.
We don't inline self-recursive CallBases right? Seems like we should always get a `Never` in that case. But not super important to factor that out right now.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94825/new/
https://reviews.llvm.org/D94825
More information about the cfe-commits
mailing list