Remove inlining cost of Deinit
statements
This commit is contained in:
parent
48b01a0d0e
commit
2f03767eef
4 changed files with 268 additions and 113 deletions
|
@ -369,6 +369,7 @@ impl<'tcx> Inliner<'tcx> {
|
|||
match stmt.kind {
|
||||
StatementKind::StorageLive(_)
|
||||
| StatementKind::StorageDead(_)
|
||||
| StatementKind::Deinit(_)
|
||||
| StatementKind::Nop => {}
|
||||
_ => cost += INSTR_COST,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue