1
Fork 0

Do not consider borrowed Freeze locals as SSA.

This commit is contained in:
Camille GILLOT 2023-04-26 18:30:12 +00:00
parent 3490375570
commit 3c43b61b87
10 changed files with 69 additions and 43 deletions

View file

@ -33,9 +33,8 @@ impl<'tcx> MirPass<'tcx> for CopyProp {
}
fn propagate_ssa<'tcx>(tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>) {
let param_env = tcx.param_env_reveal_all_normalized(body.source.def_id());
let borrowed_locals = borrowed_locals(body);
let ssa = SsaLocals::new(tcx, param_env, body, &borrowed_locals);
let ssa = SsaLocals::new(body);
let fully_moved = fully_moved_locals(&ssa, body);
debug!(?fully_moved);