Dead Code Elimination

libxmoc libxmoc at gmail.com
Sun Oct 18 15:33:17 UTC 2026


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.




More information about the Digitalmars-d mailing list