[pypy-svn] pypy default: "Good". Branch prediction macro does not seem to help. Also, it's unclear

fijal commits-noreply at bitbucket.org
Mon Apr 11 12:24:38 CEST 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r43288:317393b08e4e
Date: 2011-04-11 12:24 +0200
http://bitbucket.org/pypy/pypy/changeset/317393b08e4e/

Log:	"Good". Branch prediction macro does not seem to help. Also, it's
	unclear whether this works (but it does not segfault at least)

diff --git a/pypy/jit/backend/x86/assembler.py b/pypy/jit/backend/x86/assembler.py
--- a/pypy/jit/backend/x86/assembler.py
+++ b/pypy/jit/backend/x86/assembler.py
@@ -1849,9 +1849,6 @@
     def implement_guard(self, guard_token, condition=None):
         # These jumps are patched later.
         if condition:
-            if condition not in ['B', 'E', 'BE']:
-                # this is a hint "branch not taken
-                self.mc.writechar('\x2E')
             self.mc.J_il(rx86.Conditions[condition], 0)
         else:
             self.mc.JMP_l(0)


More information about the Pypy-commit mailing list