remove check from const promotion
This commit is contained in:
parent
b556690c53
commit
1d3305aa66
@ -60,10 +60,6 @@ fn run_pass(&self, tcx: TyCtxt<'tcx>, body: &mut Body<'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);
|
||||
|
Loading…
Reference in New Issue
Block a user