Re:Writing a self-modifying x86 factorial program
by gpderetta on Wednesday December 15, 2021 @06:53AM
(#29564714)
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).
The jit can help if the value of the pointer varies dynamically and in an unpredictable way (otherwise PGO would also help).