coverage: CoverageIdsInfo::mcdc_bitmap_bytes
is never needed
This code for recalculating `mcdc_bitmap_bytes` doesn't provide any benefit, because its result won't have changed from the value in `FunctionCoverageInfo` that was computed during the MIR instrumentation pass.
This commit is contained in:
parent
fba5f44bd8
commit
bfadc3a9b9
3 changed files with 2 additions and 21 deletions
|
@ -61,17 +61,7 @@ fn coverage_ids_info<'tcx>(
|
|||
.max()
|
||||
.unwrap_or(CounterId::ZERO);
|
||||
|
||||
let mcdc_bitmap_bytes = mir_body
|
||||
.coverage_branch_info
|
||||
.as_deref()
|
||||
.map(|info| {
|
||||
info.mcdc_decision_spans
|
||||
.iter()
|
||||
.fold(0, |acc, decision| acc + (1_u32 << decision.conditions_num).div_ceil(8))
|
||||
})
|
||||
.unwrap_or_default();
|
||||
|
||||
CoverageIdsInfo { max_counter_id, mcdc_bitmap_bytes }
|
||||
CoverageIdsInfo { max_counter_id }
|
||||
}
|
||||
|
||||
fn all_coverage_in_mir_body<'a, 'tcx>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue