about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-10-12 18:36:44 +0200
committerGitHub <noreply@github.com>2023-10-12 18:36:44 +0200
commit4832811b0d19fd273e698ffa46a8fdac7489052e (patch)
tree5852e85d9251058a98cbb11340801db1a02cd209 /compiler/rustc_codegen_llvm/src/builder.rs
parent5f90bee663f3dcd1708779ac76b7241de2523a9a (diff)
parentd99ab97b027917b434790b76492386310b47978d (diff)
downloadrust-4832811b0d19fd273e698ffa46a8fdac7489052e.tar.gz
rust-4832811b0d19fd273e698ffa46a8fdac7489052e.zip
Rollup merge of #116654 - Zalathar:reloop-traversal, r=oli-obk
coverage: Clarify loop-edge detection and graph traversal

This is a collection of improvements to two semi-related pieces of code:

- The code in `counters` that detects which graph edges don't exit a loop, and would therefore be good candidates to have their coverage computed as an expression rather than having a physical counter.
- The code in `graph` that traverses the coverage BCB graph in a particular order, and tracks loops and loop edges along the way (which is relevant to the above).

I was originally only planning to make the `graph` changes, but there was going to be a lot of indentation churn in `counters` anyway, and once I started looking I noticed a lot of opportunities for simplification.

---

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