[pypy-commit] pypy default: Comment.
arigo
noreply at buildbot.pypy.org
Sun Sep 15 12:23:24 CEST 2013
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r66953:caa51c7055cf
Date: 2013-09-15 12:18 +0200
http://bitbucket.org/pypy/pypy/changeset/caa51c7055cf/
Log: Comment.
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
@@ -77,6 +77,11 @@
node = self.master_node
#
if hint >= 0:
+ # Look for and remove the Node with the .val matching 'hint'.
+ # If not found, fall back to removing the first Node.
+ # Note that the loop below ignores the first Node, but
+ # even if by chance it is the one with the correct .val,
+ # it will be the one we remove at the end anyway.
prev_node = node
while prev_node.next:
if prev_node.next.val == hint:
More information about the pypy-commit
mailing list