aboutsummaryrefslogtreecommitdiff
path: root/lib/std/multi_array_list.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2023-04-26 01:43:55 +0100
committermlugg <mlugg@mlugg.co.uk>2023-04-26 01:46:09 +0100
commit3df2f356eba9b0882ee3fa09704aae7dc173f3d4 (patch)
tree8148aa73bb87733ef5c221c0ebf60a9c07cfd657 /lib/std/multi_array_list.zig
parent2e23ddbe7ba48857fbdcf014da3251f1decca00d (diff)
downloadzig-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/multi_array_list.zig')
0 files changed, 0 insertions, 0 deletions