[pypy-commit] pypy ppc-jit-backend: (edelsohn, bivab) remove r2 and r13 from the list of volatile registers.

bivab noreply at buildbot.pypy.org
Tue Feb 21 18:03:13 CET 2012


Author: David Schneider <david.schneider at picle.org>
Branch: ppc-jit-backend
Changeset: r52742:16239b2ad2c1
Date: 2012-02-21 08:37 -0800
http://bitbucket.org/pypy/pypy/changeset/16239b2ad2c1/

Log:	(edelsohn, bivab) remove r2 and r13 from the list of volatile
	registers.

	r2 is persisted around calls anyway and r13 can be ignored

diff --git a/pypy/jit/backend/ppc/register.py b/pypy/jit/backend/ppc/register.py
--- a/pypy/jit/backend/ppc/register.py
+++ b/pypy/jit/backend/ppc/register.py
@@ -14,7 +14,8 @@
 
 NONVOLATILES        = [r14, r15, r16, r17, r18, r19, r20, r21, r22, r23,
                     r24, r25, r26, r27, r28, r29, r30, r31]
-VOLATILES           = [r0, r2, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12, r13]
+VOLATILES           = [r0, r3, r4, r5, r6, r7, r8, r9, r10, r11, r12]
+# volatile r2 is persisted around calls and r13 can be ignored
 
 NONVOLATILES_FLOAT  = [f14, f15, f16, f17, f18, f19, f20, f21, f22, f23,
                     f24, f25, f26, f27, f28, f29, f30, f31]


More information about the pypy-commit mailing list