3 ms·
Inlining passed function pointer is not really a JIT only optimization. As long as the pointer is a constant it only requires interprocedural optimizations and/
by gpderetta 5y ago
Inlining passed function pointer is not really a JIT only optimization. As long as the pointer is a constant it only requires interprocedural optimizations and/or link time optimization.
The jit can help if the value of the pointer varies dynamically and in an unpredictable way (otherwise PGO would also help).