Author: Carl Friedrich Bolz-Tereick <cfb...@gmx.de> Branch: regalloc-playground Changeset: r92308:b29a80fa1544 Date: 2017-09-03 08:58 +0200 http://bitbucket.org/pypy/pypy/changeset/b29a80fa1544/
Log: add fixed positions of a var to repr diff --git a/rpython/jit/backend/llsupport/regalloc.py b/rpython/jit/backend/llsupport/regalloc.py --- a/rpython/jit/backend/llsupport/regalloc.py +++ b/rpython/jit/backend/llsupport/regalloc.py @@ -886,7 +886,11 @@ assert self.definition_pos < min(self.real_usages) def __repr__(self): - return "%s:%s(%s)" % (self.definition_pos, self.real_usages, self.last_usage) + if self.fixed_positions: + s = " " + ", ".join("@%s in %s" % (index, reg) for (index, reg) in self.fixed_positions) + else: + s = "" + return "%s:%s(%s)%s" % (self.definition_pos, self.real_usages, self.last_usage, s) class FixedRegisterPositions(object): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit