auto remove unused function arguments from call chain
Boris Carvajal
boris2.9 at gmail.com
Sun Nov 17 11:40:27 UTC 2019
On Sunday, 17 November 2019 at 06:42:48 UTC, Newbie2019 wrote:
> 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?
Already, just check in https://d.godbolt.org
This was asked a few months before:
https://forum.dlang.org/post/zuunbgthdschuncmaduo@forum.dlang.org
More information about the digitalmars-d-ldc
mailing list