inline-max-per-routine, Qinline-max-per-routine

Specifies the maximum number of times the inliner may inline into a particular routine.

IDE Equivalent

None

Architectures

IA-32, IntelŪ EM64T, IntelŪ ItaniumŪ architecture

Syntax

Linux and Mac OS: -inline-max-per-routine=n
-no-inline-max-per-routine
Windows:  /Qinline-max-per-routine=n
/Qinline-max-per-routine-

Arguments

n Is a positive integer that specifies the maximum number of times the inliner may inline into a particular routine.

Default

OFF The compiler uses default heuristics for inline routine expansion.

Description

This option specifies the maximum number of times the inliner may inline into a particular routine. It limits the number of times that inlining can be applied to any routine.

If you specify -no-inline-max-per-routine (Linux and Mac OS) or /Qinline-max-per-routine- (Windows), there is no limit to the number of times some routine may be inlined into a particular routine.

To see compiler values for important inlining limits, specify compiler option -opt-report (Linux and Mac OS) or /Qopt-report (Windows).

To see compiler values for important inlining limits, specify compiler option -opt-report (Linux and Mac OS) or /Qopt-report (Windows).

Caution

When you use this option to increase the default limit, the compiler may do so much additional inlining that it runs out of memory and terminates with an "out of memory" message.

Alternate Options

None

See Also

inline-factor, Qinline-factor compiler option

opt-report, Qopt-report compiler option

Optimizing Applications:
Compiler Directed Inline Expansion of User Functions

Developer Directed Inline Expansion of User Functions