diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2023-08-14 18:01:28 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2023-09-21 18:32:49 +1000 |
| commit | 527c629cd9d2cc689eabb99d4e246b01401f2564 (patch) | |
| tree | 0fc953da3226874a355515b114e3582bdac1cda3 /tests/rustdoc-js-std/struct-vec.js | |
| parent | 659575aade611f19b8e75e39224781b1f6f15ee6 (diff) | |
| download | rust-527c629cd9d2cc689eabb99d4e246b01401f2564.tar.gz rust-527c629cd9d2cc689eabb99d4e246b01401f2564.zip | |
coverage: Explicitly simplify coverage expressions in codegen
After coverage instrumentation and MIR transformations, we can sometimes end up with coverage expressions that always have a value of zero. Any expression operand that refers to an always-zero expression can be replaced with a literal `Operand::Zero`, making the emitted coverage mapping data smaller and simpler. This simplification step is mostly redundant with the simplifications performed inline in `expressions_with_regions`, except that it does a slightly more thorough job in some cases (because it checks for always-zero expressions *after* other simplifications). However, adding this simplification step will then let us greatly simplify that code, without affecting the quality of the emitted coverage maps.
Diffstat (limited to 'tests/rustdoc-js-std/struct-vec.js')
0 files changed, 0 insertions, 0 deletions
