Walter's talk on D backend
Walter Bright
newshound2 at digitalmars.com
Tue Sep 24 06:14:52 UTC 2024
On 9/23/2024 2:43 AM, claptrap wrote:
> How do you do dead code elimination in your backend? I mean if you have 3
> assignments to X, and say 5 uses of X, how do you determine if any of the
> assignments are redundant?
By using DFA (Data Flow Analysis).
https://github.com/dlang/dmd/blob/master/compiler/src/dmd/backend/gother.d#L1375
DMD does do all the conventional data flow analysis optimizations.
More information about the Digitalmars-d
mailing list