diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2025-03-05 23:41:44 +0100 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2025-03-06 00:25:46 +0100 |
| commit | 5bae3adde9410c4f0f7363ec44b183a255463a0e (patch) | |
| tree | 5f8d12ea5dbba9590f9d2dc70508485beb7010e2 /compiler/rustc_mir_transform/src/coverage/spans.rs | |
| parent | 508b803c44e4df10fe189e8d1ae3a551ade9b2da (diff) | |
| download | rust-5bae3adde9410c4f0f7363ec44b183a255463a0e.tar.gz rust-5bae3adde9410c4f0f7363ec44b183a255463a0e.zip | |
Calculate predecessor count directly
Avoid allocating a vector of small vectors merely to determine how many predecessors each basic block has. Additionally use u8 and saturating operations. The pass only needs to distinguish between [0..1] and [2..].
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/spans.rs')
0 files changed, 0 insertions, 0 deletions
