Enable the SimplifyArmIdentity MIR optimization at mir-opt-level=1
This commit is contained in:
parent
0d0f6b1130
commit
903c0399e7
2 changed files with 9 additions and 11 deletions
|
@ -367,11 +367,7 @@ fn optimization_applies<'tcx>(
|
|||
}
|
||||
|
||||
impl<'tcx> MirPass<'tcx> for SimplifyArmIdentity {
|
||||
fn run_pass(&self, tcx: TyCtxt<'tcx>, source: MirSource<'tcx>, body: &mut Body<'tcx>) {
|
||||
if tcx.sess.opts.debugging_opts.mir_opt_level < 2 {
|
||||
return;
|
||||
}
|
||||
|
||||
fn run_pass(&self, _tcx: TyCtxt<'tcx>, source: MirSource<'tcx>, body: &mut Body<'tcx>) {
|
||||
trace!("running SimplifyArmIdentity on {:?}", source);
|
||||
let local_uses = LocalUseCounter::get_local_uses(body);
|
||||
let (basic_blocks, local_decls, debug_info) =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue