Author: edelsohn
Branch: ppc-jit-backend
Changeset: r56238:0cedb6df77c4
Date: 2012-07-19 15:42 -0400
http://bitbucket.org/pypy/pypy/changeset/0cedb6df77c4/
Log: Import remap_frame_layout() change from x86 and ARM.
diff --git a/pypy/jit/backend/ppc/jump.py b/pypy/jit/backend/ppc/jump.py
--- a/pypy/jit/backend/ppc/jump.py
+++ b/pypy/jit/backend/ppc/jump.py
@@ -18,7 +18,10 @@
key = src.as_key()
if key in srccount:
if key == dst_locations[i].as_key():
- 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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit