Hi,

Sorry for the delayed response, and thank you for the review and
suggestions.

I have now posted a substantially reworked v4 here:
https://sourceware.org/pipermail/gcc-patches/2026-July/725231.html

Following your suggestion, v4 removes both of the newly proposed
inliner parameters. Instead, it distinguishes between -Os and -Oz
inside the inliner itself.

Under -Os, limited size growth is permitted only for calls that are
proven hot by reliable profile feedback and are expected to provide a
significant speedup. Calls classified as probably never executed and
calls in tail position are excluded. -Oz retains the existing
size-first behavior.

The change is also kept local to the inliner, leaving the general
callgraph hotness predicate unchanged so that unrelated IPA
transformations are not affected. Tests covering -Os with and without
PGO, cold and tail calls, and -Oz have been added.

The previous parameter-based implementation has therefore been
replaced completely.

Thanks again for your helpful feedback and for pointing me in this
direction.

Best regards,
Eldar.

Reply via email to