The -xinline option has no effect for optimization levels below -xO3. At -xO4 and higher, the optimizer decides which functions should be inlined, and does so without the -xinline option being specified. At -xO4 and higher, the compiler also attempts to determine which functions will improve performance if they are inlined.
A routine is inlined if any of the following conditions apply.
Optimization is-xO3 or greater
Inlining is judged to be profitable and safe
The function is in the file being compiled, or the function is in a file that was compiled with -xipo[=1|2]