Stop using cfg.postorder_ebbs().

Switch to the new domtree.cfg_postorder() which returns a reference to a
pre-computed post-order instead of allocating memory and computing a new
post-order.
This commit is contained in:
Jakob Stoklund Olesen
2017-06-07 13:38:27 -07:00
parent 0d227fd230
commit f22461b4b3
4 changed files with 12 additions and 10 deletions

View File

@@ -75,7 +75,7 @@ impl Context {
/// Run the legalizer for `isa` on the function.
pub fn legalize(&mut self, isa: &TargetIsa) -> CtonResult {
legalize_function(&mut self.func, &mut self.cfg, isa);
legalize_function(&mut self.func, &mut self.cfg, &self.domtree, isa);
self.verify_if(isa)
}