2 ms·
> AFAIK at least currently the compiler doesn't hoist objects directly to the callee's stack frame. Yes, it does. This is the "retptr" optimization.
by pcwalton 9y ago
> AFAIK at least currently the compiler doesn't hoist objects directly to the callee's stack frame.
Yes, it does. This is the "retptr" optimization.
- oconnor663 9y agoDoesn't the LLVM backend make tons of similar optimizations under the hood?
- pcwalton 9y agoYes, especially if callees are inlined.