Skip to content

Commit 1d3305a

Browse files
committed
remove check from const promotion
1 parent b556690 commit 1d3305a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

compiler/rustc_mir/src/transform/promote_consts.rs

-4
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ impl<'tcx> MirPass<'tcx> for PromoteTemps<'tcx> {
6060
return;
6161
}
6262

63-
if !tcx.consider_optimizing(|| format!("PromoteTemps {:?} ", body.source.def_id())) {
64-
return;
65-
}
66-
6763
let mut rpo = traversal::reverse_postorder(body);
6864
let ccx = ConstCx::new(tcx, body);
6965
let (temps, all_candidates) = collect_temps_and_candidates(&ccx, &mut rpo);

0 commit comments

Comments
 (0)