From 3e4531657c1514d296b210ff586453c4dd4c6d30 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 19 Apr 2018 17:49:48 -0700 Subject: [PATCH] Temporarily disable the shink_instruction pass. It appears some of the instruction encodings are incorrect. Temporarily disable the use of shorter encodings until these are fixed. --- lib/codegen/src/context.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/codegen/src/context.rs b/lib/codegen/src/context.rs index 42fde1cc4a..d9dcf7ba87 100644 --- a/lib/codegen/src/context.rs +++ b/lib/codegen/src/context.rs @@ -140,9 +140,12 @@ impl Context { } self.regalloc(isa)?; self.prologue_epilogue(isa)?; + // Temporarily disable the shrink_instructions pass, as it causes miscompiles. + /* if isa.flags().opt_level() == OptLevel::Best { self.shrink_instructions(isa)?; } + */ self.relax_branches(isa) }