diff options
| author | Zalathar <Zalathar@users.noreply.github.com> | 2023-06-29 16:50:52 +1000 |
|---|---|---|
| committer | Zalathar <Zalathar@users.noreply.github.com> | 2023-08-13 12:18:06 +1000 |
| commit | 5ca30c4646cb03387d2770fc759ea40c58344831 (patch) | |
| tree | 8b33ae8edd1984f98486f463358ffc7059e35ad0 /compiler/rustc_codegen_llvm/src | |
| parent | 5302c9d451ec9928477d30f6821218c1ecfc42fc (diff) | |
| download | rust-5ca30c4646cb03387d2770fc759ea40c58344831.tar.gz rust-5ca30c4646cb03387d2770fc759ea40c58344831.zip | |
Store BCB counters externally, not directly in the BCB graph
Storing coverage counter information in `CoverageCounters` has a few advantages over storing it directly inside BCB graph nodes: - The graph doesn't need to be mutable when making the counters, making it easier to see that the graph itself is not modified during this step. - All of the counter data is clearly visible in one place. - It becomes possible to use a representation that doesn't correspond 1:1 to graph nodes, e.g. storing all the edge counters in a single hashmap instead of several.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
