Lets you specify a function size n for which functions of size <= n do not contribute to the estimated growth of the caller when inlined.

Syntax

Linux and macOS:

-inline-min-caller-growth=n

Windows:

/Qinline-min-caller-growth=n

Arguments

n

Is a non-negative integer. When n > 0, functions with a size of n are treated as if they are size 0.

Default

-inline-min-caller-growth=0
or /Qinline-min-caller-growth=0

The compiler treats functions as if they have size zero.

Description

This option lets you specify a function size n for which functions of size <= n do not contribute to the estimated growth of the caller when inlined. It allows you to inline functions that the compiler would otherwise consider too large to inline.

Note

We recommend that you choose a value of n <= 10; otherwise, compile time and code size may greatly increase.

IDE Equivalent

None

Alternate Options

None

Для получения подробной информации о возможностях оптимизации компилятора обратитесь к нашему Уведомлению об оптимизации.