Do not consider borrowed Freeze locals as SSA.
This commit is contained in:
parent
3490375570
commit
3c43b61b87
10 changed files with 69 additions and 43 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue