Address review comments.

This commit is contained in:
Chris Fallin
2021-08-31 17:42:50 -07:00
parent b19fa4857f
commit 6389071e09
5 changed files with 37 additions and 25 deletions

View File

@@ -860,7 +860,7 @@ impl<'a, F: Function> Env<'a, F> {
return;
}
for inst in from.inst().index()..=to.inst().index() {
if this.func.is_safepoint(Inst::new(inst)) {
if this.func.requires_refs_on_stack(Inst::new(inst)) {
redundant_moves.clear();
return;
}