Skip to content

Commit 7e95ff7

Browse files
committed
Ignore intrinsics::assume in MIR inlining cost estimation
1 parent 0e2dac8 commit 7e95ff7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler/rustc_mir_transform/src/cost_checker.rs

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ impl<'tcx> Visitor<'tcx> for CostChecker<'_, 'tcx> {
4747
StatementKind::StorageLive(_)
4848
| StatementKind::StorageDead(_)
4949
| StatementKind::Deinit(_)
50+
| StatementKind::Intrinsic(box NonDivergingIntrinsic::Assume(_))
5051
| StatementKind::Nop => {}
5152
_ => self.cost += INSTR_COST,
5253
}

0 commit comments

Comments
 (0)