Remove inlining cost of Deinit statements

This commit is contained in:
Jakob Degen 2022-04-11 10:23:33 -04:00
parent 48b01a0d0e
commit 2f03767eef
4 changed files with 268 additions and 113 deletions

View file

@ -369,6 +369,7 @@ impl<'tcx> Inliner<'tcx> {
match stmt.kind {
StatementKind::StorageLive(_)
| StatementKind::StorageDead(_)
| StatementKind::Deinit(_)
| StatementKind::Nop => {}
_ => cost += INSTR_COST,
}