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

@@ -122,7 +122,7 @@ impl Function for Func {
0
}
fn is_safepoint(&self, insn: Inst) -> bool {
fn requires_refs_on_stack(&self, insn: Inst) -> bool {
self.insts[insn.index()].is_safepoint
}
@@ -569,7 +569,7 @@ impl std::fmt::Debug for Func {
i, params, succs, preds
)?;
for inst in blockrange.iter() {
if self.is_safepoint(inst) {
if self.requires_refs_on_stack(inst) {
write!(f, " -- SAFEPOINT --\n")?;
}
write!(