[pypy-commit] pypy default: fix.
arigo
noreply at buildbot.pypy.org
Wed Dec 21 16:16:05 CET 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r50806:2261c6bb4a58
Date: 2011-12-21 16:15 +0100
http://bitbucket.org/pypy/pypy/changeset/2261c6bb4a58/
Log: fix.
diff --git a/pypy/jit/backend/x86/jump.py b/pypy/jit/backend/x86/jump.py
--- a/pypy/jit/backend/x86/jump.py
+++ b/pypy/jit/backend/x86/jump.py
@@ -17,7 +17,10 @@
key = src._getregkey()
if key in srccount:
if key == dst_locations[i]._getregkey():
- srccount[key] = -sys.maxint # ignore a move "x = x"
+ # ignore a move "x = x"
+ # setting any "large enough" negative value is ok, but
+ # be careful of overflows, don't use -sys.maxint
+ srccount[key] = -len(dst_locations) - 1
pending_dests -= 1
else:
srccount[key] += 1
More information about the pypy-commit
mailing list