4 ms·
Inlining makes for better register allocation :-)
by WalterBright 10y ago
Inlining makes for better register allocation :-)
- dan00 10y agoBecause you don't need registers for the function call ceremony?
- benchaney 10y agoYes, and because you don't have to spill the arguments to the stack. Also, you optimize across the function call boundary.
- WalterBright 10y agoBecause you can allocate registers in a way that is particular to a specific call's context, rather than in the generic context of a called function.