about summary refs log tree commit diff
path: root/compiler/rustc_middle/src
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2024-04-30 23:36:08 +1000
committerZalathar <Zalathar@users.noreply.github.com>2024-05-14 16:41:04 +1000
commitbfadc3a9b9cb4bbfacddf6e73adff23a3557852b (patch)
treea74785390f0523db2ee3a82f9b0602c8dc6e01d1 /compiler/rustc_middle/src
parentfba5f44bd880b83245f7d30afe55bf745a88cdf0 (diff)
downloadrust-bfadc3a9b9cb4bbfacddf6e73adff23a3557852b.tar.gz
rust-bfadc3a9b9cb4bbfacddf6e73adff23a3557852b.zip
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.
Diffstat (limited to 'compiler/rustc_middle/src')
-rw-r--r--compiler/rustc_middle/src/mir/query.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_middle/src/mir/query.rs b/compiler/rustc_middle/src/mir/query.rs
index 9a7af6135e4..9d70231be3b 100644
--- a/compiler/rustc_middle/src/mir/query.rs
+++ b/compiler/rustc_middle/src/mir/query.rs
@@ -362,8 +362,4 @@ pub struct CoverageIdsInfo {
     /// InstrumentCoverage MIR pass, if the highest-numbered counter increments
     /// were removed by MIR optimizations.
     pub max_counter_id: mir::coverage::CounterId,
-
-    /// Coverage codegen for mcdc needs to know the size of the global bitmap so that it can
-    /// set the `bytemap-bytes` argument of the `llvm.instrprof.mcdc.tvbitmap.update` intrinsic.
-    pub mcdc_bitmap_bytes: u32,
 }