We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b556690 commit 1d3305aCopy full SHA for 1d3305a
compiler/rustc_mir/src/transform/promote_consts.rs
@@ -60,10 +60,6 @@ impl<'tcx> MirPass<'tcx> for PromoteTemps<'tcx> {
60
return;
61
}
62
63
- if !tcx.consider_optimizing(|| format!("PromoteTemps {:?} ", body.source.def_id())) {
64
- return;
65
- }
66
-
67
let mut rpo = traversal::reverse_postorder(body);
68
let ccx = ConstCx::new(tcx, body);
69
let (temps, all_candidates) = collect_temps_and_candidates(&ccx, &mut rpo);
0 commit comments