Promote the (Block, Inst) tuple into a PredBlock struct;

This commit is contained in:
Benjamin Bouvier
2018-07-19 16:06:47 +02:00
committed by Dan Gohman
parent f72ff791b4
commit 78b04fc8ab
2 changed files with 31 additions and 12 deletions

View File

@@ -544,10 +544,9 @@ where
Some(entry) => self.position.ebb.unwrap() == entry,
};
!is_entry && self.func_ctx.ssa.is_sealed(self.position.ebb.unwrap())
&& self.func_ctx
&& !self.func_ctx
.ssa
.predecessors(self.position.ebb.unwrap())
.is_empty()
.has_any_predecessors(self.position.ebb.unwrap())
}
/// Returns `true` if and only if no instructions have been added since the last call to