Merge dead bb pruning and unreachable bb deduplication.
This commit is contained in:
parent
9522993b03
commit
4071572cb4
19 changed files with 129 additions and 161 deletions
|
@ -1316,6 +1316,7 @@ impl<'tcx> BasicBlockData<'tcx> {
|
|||
}
|
||||
|
||||
/// Does the block have no statements and an unreachable terminator?
|
||||
#[inline]
|
||||
pub fn is_empty_unreachable(&self) -> bool {
|
||||
self.statements.is_empty() && matches!(self.terminator().kind, TerminatorKind::Unreachable)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue