auto remove unused function arguments from call chain
Newbie2019
newbie2019 at gmail.com
Sun Nov 17 06:42:48 UTC 2019
On Saturday, 16 November 2019 at 11:25:35 UTC, Johan Engelen
wrote:
> In general, no. Because the function signature must be obeyed
> such that the function can be called from anywhere without
> knowing the optimizations inside of it.
> If the function is internal to a module and the function is not
> exported, then yes the optimization is perhaps legal. So LTO
> might be allowed (and able) to do it, but I don't know.
>
> -Johan
most of them are internal to a module for debug.
Is LDC already do it, or could be done in future?
More information about the digitalmars-d-ldc
mailing list