diff --git a/lib/cretonne/src/regalloc/pressure.rs b/lib/cretonne/src/regalloc/pressure.rs index 0ee39b07d5..c71037efdd 100644 --- a/lib/cretonne/src/regalloc/pressure.rs +++ b/lib/cretonne/src/regalloc/pressure.rs @@ -258,7 +258,7 @@ impl fmt::Display for Pressure { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "Pressure[")?; for rc in &self.toprc { - if rc.limit > 0 { + if rc.limit > 0 && rc.limit < !0 { write!(f, " {}+{}/{}", rc.base_count, rc.transient_count, rc.limit)?; } }