[pypy-commit] pypy ppc-jit-backend: Don't save and restore r3 and r4 in REGLOC_TO_COPY_AREA_OFS.

edelsohn noreply at buildbot.pypy.org
Sun Mar 4 03:21:39 CET 2012


Author: edelsohn
Branch: ppc-jit-backend
Changeset: r53160:1e9d770b673e
Date: 2012-03-03 21:21 -0500
http://bitbucket.org/pypy/pypy/changeset/1e9d770b673e/

Log:	Don't save and restore r3 and r4 in REGLOC_TO_COPY_AREA_OFS.

diff --git a/pypy/jit/backend/ppc/regalloc.py b/pypy/jit/backend/ppc/regalloc.py
--- a/pypy/jit/backend/ppc/regalloc.py
+++ b/pypy/jit/backend/ppc/regalloc.py
@@ -46,33 +46,31 @@
     save_around_call_regs = r.VOLATILES
 
     REGLOC_TO_COPY_AREA_OFS = {
-        r.r3:   MY_COPY_OF_REGS + 0 * WORD,
-        r.r4:   MY_COPY_OF_REGS + 1 * WORD,
-        r.r5:   MY_COPY_OF_REGS + 2 * WORD,
-        r.r6:   MY_COPY_OF_REGS + 3 * WORD,
-        r.r7:   MY_COPY_OF_REGS + 4 * WORD,
-        r.r8:   MY_COPY_OF_REGS + 5 * WORD,
-        r.r9:   MY_COPY_OF_REGS + 6 * WORD,
-        r.r10:  MY_COPY_OF_REGS + 7 * WORD,
-        r.r11:  MY_COPY_OF_REGS + 8 * WORD,
-        r.r12:  MY_COPY_OF_REGS + 9 * WORD,
-        r.r14:  MY_COPY_OF_REGS + 10 * WORD,
-        r.r15:  MY_COPY_OF_REGS + 11 * WORD,
-        r.r16:  MY_COPY_OF_REGS + 12 * WORD,
-        r.r17:  MY_COPY_OF_REGS + 13 * WORD,
-        r.r18:  MY_COPY_OF_REGS + 14 * WORD,
-        r.r19:  MY_COPY_OF_REGS + 15 * WORD,
-        r.r20:  MY_COPY_OF_REGS + 16 * WORD,
-        r.r21:  MY_COPY_OF_REGS + 17 * WORD,
-        r.r22:  MY_COPY_OF_REGS + 18 * WORD,
-        r.r23:  MY_COPY_OF_REGS + 19 * WORD,
-        r.r24:  MY_COPY_OF_REGS + 20 * WORD,
-        r.r25:  MY_COPY_OF_REGS + 21 * WORD,
-        r.r26:  MY_COPY_OF_REGS + 22 * WORD,
-        r.r27:  MY_COPY_OF_REGS + 23 * WORD,
-        r.r28:  MY_COPY_OF_REGS + 24 * WORD,
-        r.r29:  MY_COPY_OF_REGS + 25 * WORD,
-        r.r30:  MY_COPY_OF_REGS + 26 * WORD,
+        r.r5:   MY_COPY_OF_REGS + 0 * WORD,
+        r.r6:   MY_COPY_OF_REGS + 1 * WORD,
+        r.r7:   MY_COPY_OF_REGS + 2 * WORD,
+        r.r8:   MY_COPY_OF_REGS + 3 * WORD,
+        r.r9:   MY_COPY_OF_REGS + 4 * WORD,
+        r.r10:  MY_COPY_OF_REGS + 5 * WORD,
+        r.r11:  MY_COPY_OF_REGS + 6 * WORD,
+        r.r12:  MY_COPY_OF_REGS + 7 * WORD,
+        r.r14:  MY_COPY_OF_REGS + 8 * WORD,
+        r.r15:  MY_COPY_OF_REGS + 9 * WORD,
+        r.r16:  MY_COPY_OF_REGS + 10 * WORD,
+        r.r17:  MY_COPY_OF_REGS + 11 * WORD,
+        r.r18:  MY_COPY_OF_REGS + 12 * WORD,
+        r.r19:  MY_COPY_OF_REGS + 13 * WORD,
+        r.r20:  MY_COPY_OF_REGS + 14 * WORD,
+        r.r21:  MY_COPY_OF_REGS + 15 * WORD,
+        r.r22:  MY_COPY_OF_REGS + 16 * WORD,
+        r.r23:  MY_COPY_OF_REGS + 17 * WORD,
+        r.r24:  MY_COPY_OF_REGS + 18 * WORD,
+        r.r25:  MY_COPY_OF_REGS + 19 * WORD,
+        r.r26:  MY_COPY_OF_REGS + 20 * WORD,
+        r.r27:  MY_COPY_OF_REGS + 21 * WORD,
+        r.r28:  MY_COPY_OF_REGS + 22 * WORD,
+        r.r29:  MY_COPY_OF_REGS + 23 * WORD,
+        r.r30:  MY_COPY_OF_REGS + 24 * WORD,
     }
 
     def __init__(self, longevity, frame_manager=None, assembler=None):


More information about the pypy-commit mailing list