Re:How do compilers optimize divisions?
by WalterBright on Tuesday February 21, 2017 @04:16AM
(#13694361)
Inlining makes for better register allocation :-)
[ Parent
| on HN ]
Because you don't need registers for the function call ceremony?
Re:How do compilers optimize divisions?
by benchaney on Tuesday February 21, 2017 @04:44AM
(#13694457)
Yes, and because you don't have to spill the arguments to the stack. Also, you optimize across the function call boundary.
Re:How do compilers optimize divisions?
by WalterBright on Tuesday February 21, 2017 @09:25PM
(#13702381)
Because 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.