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

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 16 17:00:46 PDT 2021


davidxl added a comment.

Having cap on the target context (where a site is inlined into) is useful for performance purpose but it is based on working set analysis which we are working on. This can be 'overloaded' to control compile time growth too.

Regarding option, I think it is useful to have an internal option to workaround problem like this. The easiest is to have a cap on the max number callsites that can iteratively inlined for a given callsite.


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