Skip to content

Commit c81be68

Browse files
committed
coverage: Remove confusing comments from CoverageKind
These comments appear to be inspired by the similar comments on `CounterIncrement` and `ExpressionUsed`. But those comments refer to specific simplification steps performed during coverage codegen, and there is no corresponding step for the MC/DC coverage statements. If these statements do not survive optimization, they will simply not participate in code generation, just like any other statement.
1 parent bfadc3a commit c81be68

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Diff for: compiler/rustc_middle/src/mir/coverage.rs

-6
Original file line numberDiff line numberDiff line change
@@ -129,17 +129,11 @@ pub enum CoverageKind {
129129
/// Marks the point in MIR control flow represented by a evaluated condition.
130130
///
131131
/// This is eventually lowered to `llvm.instrprof.mcdc.condbitmap.update` in LLVM IR.
132-
///
133-
/// If this statement does not survive MIR optimizations, the condition would never be
134-
/// taken as evaluated.
135132
CondBitmapUpdate { id: ConditionId, value: bool, decision_depth: u16 },
136133

137134
/// Marks the point in MIR control flow represented by a evaluated decision.
138135
///
139136
/// This is eventually lowered to `llvm.instrprof.mcdc.tvbitmap.update` in LLVM IR.
140-
///
141-
/// If this statement does not survive MIR optimizations, the decision would never be
142-
/// taken as evaluated.
143137
TestVectorBitmapUpdate { bitmap_idx: u32, decision_depth: u16 },
144138
}
145139

0 commit comments

Comments
 (0)