Reuse the DominatorTree postorder travesal in BlockLoweringOrder (#5843)

* Rework the blockorder module to reuse the dom tree's cfg postorder

* Update domtree tests

* Treat br_table with an empty jump table as multiple block exits

* Bless tests

* Change branch_idx to succ_idx and fix the comment
This commit is contained in:
Trevor Elliott
2023-02-23 14:05:20 -08:00
committed by GitHub
parent 4314210162
commit 8abfe928d6
175 changed files with 2936 additions and 3186 deletions

View File

@@ -140,7 +140,7 @@ impl Context {
self.optimize(isa)?;
isa.compile_function(&self.func, self.want_disasm)
isa.compile_function(&self.func, &self.domtree, self.want_disasm)
}
/// Optimize the function, performing all compilation steps up to