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>2024-09-17 03:58:46 +0200
committerGitHub <noreply@github.com>2024-09-17 03:58:46 +0200
commit1a7fdc7d5dd53a51db679454df8709257fee395b (patch)
tree0a5b21d3bd339764e21ce2d5bcd890805fac50ef /compiler/rustc_codegen_llvm/src
parentbde6bf2b07b61f7da92c211d2b4a897ea4620e1b (diff)
parent2a3e17c6d5c49eeb770ade2fa660f98e9cce0ce0 (diff)
downloadrust-1a7fdc7d5dd53a51db679454df8709257fee395b.tar.gz
rust-1a7fdc7d5dd53a51db679454df8709257fee395b.zip
Rollup merge of #130380 - Zalathar:counters, r=jieyouxu
coverage: Clarify some parts of coverage counter creation

This is a series of semi-related changes that are trying to make the `counters` module easier to read, understand, and modify.

For example, the existing code happens to avoid ever using the count for a `TerminatorKind::Yield` node as the count for its sole out-edge (since doing so would be incorrect), but doesn't do so explicitly, so seemingly-innocent changes can result in baffling test failures.

This PR also takes the opportunity to simplify some debug-logging code that was making its surrounding code disproportionately hard to read.

There should be no changes to the resulting coverage instrumentation/mappings, as demonstrated by the absence of changes to the coverage test suite.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions