Dead Code Elimination
user1234
user1234 at 12.de
Wed Oct 21 09:53:19 UTC 2026
On Wednesday, 21 October 2026 at 09:32:25 UTC, user1234 wrote:
> On Sunday, 18 October 2026 at 15:33:17 UTC, libxmoc wrote:
>> I noticed that dmd doesn't do DCE, my executable is quite
>> large for what it does. Any plan to add that? I tried to do it
>> myself, a simple bool in DSymbol + a visitor (yoinked it from
>> the unused import PR) to scan things, and it shrank build time
>> by ~15% and executable went down to 3.5mb from 5.5mb.
>>
>> Surely someone smarter than me could do even better.
>
> It's hard to say when something is used, simple example:
>
> [...]
I should have said, more briefly, that this brings the question
of aliasing.
More information about the Digitalmars-d
mailing list