mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
enable on mir-opt-level=1 to test perf
This commit is contained in:
parent
27068cbfdc
commit
e25738f529
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user