From 3f30171b79361bdc85f6a878122bd80a282d3d94 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 10 Oct 2017 16:28:29 -0700 Subject: [PATCH] Actually disable simple_gvn and licm by default. See https://github.com/stoklund/cretonne/pull/164#discussion_r142449999 for details. --- lib/cretonne/src/context.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/cretonne/src/context.rs b/lib/cretonne/src/context.rs index 6c04a7f213..e69d5e9aa9 100644 --- a/lib/cretonne/src/context.rs +++ b/lib/cretonne/src/context.rs @@ -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)?;