From bdf23c02018ec87f30a24dd98c8ad4a8bfbf15dd Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sat, 27 Jul 2019 16:12:15 +0200 Subject: [PATCH] Don't set opt_level to best LICM is still broken --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 299b47403bc7..fb23522738df 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -242,7 +242,8 @@ fn build_isa(sess: &Session) -> Box { "false" }).unwrap(); - flags_builder.set("opt_level", "best").unwrap(); + // FIXME(CraneStation/cranelift#732) fix LICM in presence of jump tables + //flags_builder.set("opt_level", "best").unwrap(); // FIXME enable again when https://github.com/CraneStation/cranelift/issues/664 is fixed /*