Criteria for Inline Function Expansion

Once the criteria are met, the compiler picks the routines whose inline expansion will provide the greatest benefit to program performance. The inlining heuristics used by the compiler differ, based on whether or not you use profile-guided optimizations (-prof_use). When you use profile-guided optimizations with -ip or -ipo, the compiler uses the following heuristics:

If you do not use profile-guided optimizations with -ip or -ipo, the compiler uses less aggressive inlining heuristics: