cranelift: Remove brz and brnz (#5630)

Remove the brz and brnz instructions, as their behavior is now redundant with brif.
This commit is contained in:
Trevor Elliott
2023-01-30 12:34:56 -08:00
committed by GitHub
parent 77cf547f41
commit a5698cedf8
247 changed files with 2947 additions and 3754 deletions

View File

@@ -465,11 +465,7 @@ impl<'a> Elaborator<'a> {
));
// Determine the instruction at which we
// insert in `data.hoist_block`.
let before = self
.func
.layout
.canonical_branch_inst(&self.func.dfg, data.hoist_block)
.unwrap();
let before = self.func.layout.last_inst(data.hoist_block).unwrap();
(data.scope_depth as usize, before, data.hoist_block)
};