From e25738f529b431d5b824eb8b7510fbe86cf0c9fa Mon Sep 17 00:00:00 2001 From: Simon Vandel Sillesen Date: Sun, 20 Sep 2020 01:40:58 +0200 Subject: [PATCH] enable on mir-opt-level=1 to test perf --- compiler/rustc_mir/src/transform/early_otherwise_branch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_mir/src/transform/early_otherwise_branch.rs b/compiler/rustc_mir/src/transform/early_otherwise_branch.rs index bb77dd38f22..67e679a8b08 100644 --- a/compiler/rustc_mir/src/transform/early_otherwise_branch.rs +++ b/compiler/rustc_mir/src/transform/early_otherwise_branch.rs @@ -29,7 +29,7 @@ pub struct EarlyOtherwiseBranch; impl<'tcx> MirPass<'tcx> for EarlyOtherwiseBranch { fn run_pass(&self, tcx: TyCtxt<'tcx>, source: MirSource<'tcx>, body: &mut Body<'tcx>) { - if tcx.sess.opts.debugging_opts.mir_opt_level < 3 { + if tcx.sess.opts.debugging_opts.mir_opt_level < 1 { return; } trace!("running EarlyOtherwiseBranch on {:?}", source);