diff options
| author | mlugg <mlugg@mlugg.co.uk> | 2023-04-26 01:43:55 +0100 |
|---|---|---|
| committer | mlugg <mlugg@mlugg.co.uk> | 2023-04-26 01:46:09 +0100 |
| commit | 3df2f356eba9b0882ee3fa09704aae7dc173f3d4 (patch) | |
| tree | 8148aa73bb87733ef5c221c0ebf60a9c07cfd657 /lib/std/Progress.zig | |
| parent | 2e23ddbe7ba48857fbdcf014da3251f1decca00d (diff) | |
| download | zig-3df2f356eba9b0882ee3fa09704aae7dc173f3d4.tar.gz zig-3df2f356eba9b0882ee3fa09704aae7dc173f3d4.zip | |
Sema: avoid emitting sequential dbg_stmt instructions
Often, a `dbg_stmt` ends up being associated with no real code because
whatever it referred to was eliminated by semantic analysis. In these
cases, Sema can replace the last `dbg_stmt` with the new one to avoid
redundant AIR instructions which at best are nops and at worst cause
backends to emit useless info (e.g. CBE does this).
Diffstat (limited to 'lib/std/Progress.zig')
0 files changed, 0 insertions, 0 deletions
