about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-12-03 21:28:32 +0100
committerGitHub <noreply@github.com>2023-12-03 21:28:32 +0100
commit80c94e81d9763ef8156246de573dd13ef8e5115a (patch)
treec946a749f1a47cdc31e8a99bdc45097913a835db /compiler/rustc_codegen_llvm/src
parent591b84583c4a1b2d8dbbb82e0d7cc8016fc25dd5 (diff)
parenteb2d4cb5414361d9148bf43388012dcbdce80abe (diff)
downloadrust-80c94e81d9763ef8156246de573dd13ef8e5115a.tar.gz
rust-80c94e81d9763ef8156246de573dd13ef8e5115a.zip
Rollup merge of #118525 - Zalathar:skip-spans, r=cjgillot
coverage: Skip spans that can't be un-expanded back to the function body

When we extract coverage spans from MIR, we try to "un-expand" them back to spans that are inside the function's body span.

In cases where that doesn't succeed, the current code just swaps in the entire body span instead. But that tends to result in coverage spans that are completely unrelated to the control flow of the affected code, so it's better to just discard those spans.

---

Extracted from #118305, since this is a general improvement that isn't specific to branch coverage.

---

`@rustbot` label +A-code-coverage
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions