machinst: bump regalloc to 0.0.23 and return a slice on the successor indexes, in block_succs;

This commit is contained in:
Benjamin Bouvier
2020-05-06 17:34:27 +02:00
parent 48521393ae
commit 4f919c6460
4 changed files with 18 additions and 22 deletions

View File

@@ -22,8 +22,8 @@ impl BlockRPO {
fn visit<I: VCodeInst>(&mut self, vcode: &VCode<I>, block: BlockIndex) {
self.visited[block as usize] = true;
for succ in vcode.succs(block) {
if !self.visited[*succ as usize] {
self.visit(vcode, *succ);
if !self.visited[succ.get() as usize] {
self.visit(vcode, succ.get());
}
}
if Some(block) != vcode.fallthrough_return_block {