Merge dead bb pruning and unreachable bb deduplication.

This commit is contained in:
Camille GILLOT 2024-01-07 14:59:59 +00:00
parent 9522993b03
commit 4071572cb4
19 changed files with 129 additions and 161 deletions

View file

@ -38,7 +38,7 @@ impl<'tcx> MirPass<'tcx> for RemoveUnneededDrops {
// if we applied optimizations, we potentially have some cfg to cleanup to
// make it easier for further passes
if should_simplify {
simplify_cfg(tcx, body);
simplify_cfg(body);
}
}
}