Skip to content

Commit

Permalink
remove check from const promotion
Browse files Browse the repository at this point in the history
  • Loading branch information
cjkenn committed Nov 19, 2020
1 parent b556690 commit 1d3305a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions compiler/rustc_mir/src/transform/promote_consts.rs
Expand Up @@ -60,10 +60,6 @@ impl<'tcx> MirPass<'tcx> for PromoteTemps<'tcx> {
return;
}

if !tcx.consider_optimizing(|| format!("PromoteTemps {:?} ", body.source.def_id())) {
return;
}

let mut rpo = traversal::reverse_postorder(body);
let ccx = ConstCx::new(tcx, body);
let (temps, all_candidates) = collect_temps_and_candidates(&ccx, &mut rpo);
Expand Down

0 comments on commit 1d3305a

Please sign in to comment.