[pypy-commit] pypy default: I think that this "if" doesn't make sense. Kill tentatively.

arigo noreply at buildbot.pypy.org
Fri Jan 20 17:14:40 CET 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r51543:a80226d0b3cd
Date: 2012-01-20 17:14 +0100
http://bitbucket.org/pypy/pypy/changeset/a80226d0b3cd/

Log:	I think that this "if" doesn't make sense. Kill tentatively.

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
@@ -2042,10 +2042,7 @@
         size = sizeloc.value
         signloc = arglocs[1]
 
-        if isinstance(op.getarg(0), Const):
-            x = imm(op.getarg(0).getint())
-        else:
-            x = arglocs[2]
+        x = arglocs[2]     # the function address
         if x is eax:
             tmp = ecx
         else:


More information about the pypy-commit mailing list