This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
question about inlining long call sequence
- From: "Bin.Cheng" <amker dot cheng at gmail dot com>
- To: GCC Development <gcc at gcc dot gnu dot org>
- Date: Tue, 12 Feb 2019 17:46:05 +0800
- Subject: question about inlining long call sequence
Hi,
When reading inlining code in GCC, I wonder if we have size heuristics
to limit inlining long call sequence? For example, for call sequence
A -> B -> C -> D -> ... -> X -> Y -> Z
if each function call grows size by a very small amount, inlining Z
all the way up to the outermost function could result in a big
function which may hurt icache. Is this case handled in inliner? if
yes, which code handles this? Thanks in advance.
BTW, I am using GCC 6, not sure if trunk has different behavior.
Thanks,
bin