Address review comments.
This commit is contained in:
@@ -1011,7 +1011,7 @@ impl<'a, F: Function> Env<'a, F> {
|
||||
}
|
||||
}
|
||||
|
||||
if self.func.is_safepoint(inst) {
|
||||
if self.func.requires_refs_on_stack(inst) {
|
||||
log::trace!("inst{} is safepoint", inst.index());
|
||||
self.safepoints.push(inst);
|
||||
for vreg in live.iter() {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user