[pypy-commit] pypy default: Avoid one instruction in the endless stream of header/footer instructions

arigo pypy.commits at gmail.com
Wed Jun 14 07:38:08 EDT 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r91604:9a5adcd4d3ff
Date: 2017-06-14 13:37 +0200
http://bitbucket.org/pypy/pypy/changeset/9a5adcd4d3ff/

Log:	Avoid one instruction in the endless stream of header/footer
	instructions

diff --git a/rpython/jit/backend/x86/assembler.py b/rpython/jit/backend/x86/assembler.py
--- a/rpython/jit/backend/x86/assembler.py
+++ b/rpython/jit/backend/x86/assembler.py
@@ -980,7 +980,8 @@
         from rpython.rlib.rvmprof.rvmprof import cintf
         # edx = address of pypy_threadlocal_s
         self.mc.MOV_rs(edx.value, THREADLOCAL_OFS)
-        self.mc.AND_ri(edx.value, ~1)
+        if self._is_asmgcc():
+            self.mc.AND_ri(edx.value, ~1)
         # eax = (our local vmprof_tl_stack).next
         self.mc.MOV_rs(eax.value, (FRAME_FIXED_SIZE - 4 + 0) * WORD)
         # save in vmprof_tl_stack the value eax


More information about the pypy-commit mailing list