[PATCH] D98481: [Inliner] Do not inline mutual-recursive functions to avoid exponential size growth.

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 13 13:37:42 PDT 2021


nikic added subscribers: aeubanks, nikic.
nikic added a reviewer: aeubanks.
nikic added a comment.
Herald added subscribers: ormris, modimo.

We've encountered variants of this issue as well. I think this is a rather critical problem that needs to be addressed in a simple, release-backportable way, even if that fix causes performance regressions in some cases. A slower build is still better than no build at all. We can't even bootstrap rustc on some platforms anymore due to this problem.

The approach in this patch seems pretty sensible as a simple starting point and was previously suggested by @aeubanks in https://bugs.llvm.org/show_bug.cgi?id=45253 as well.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D98481



More information about the llvm-commits mailing list