Actually disable simple_gvn and licm by default.

See

https://github.com/stoklund/cretonne/pull/164#discussion_r142449999

for details.
This commit is contained in:
Dan Gohman
2017-10-10 16:28:29 -07:00
parent 733870aee4
commit 3f30171b79

View File

@@ -69,12 +69,14 @@ impl Context {
self.compute_cfg();
self.legalize(isa)?;
/* TODO: Enable additional optimization passes.
if isa.flags().opt_level() == OptLevel::Best {
self.compute_domtree();
self.compute_loop_analysis();
self.licm(isa)?;
self.simple_gvn(isa)?;
}
*/
self.compute_domtree();
self.eliminate_unreachable_code(isa)?;
self.regalloc(isa)?;