[pypy-commit] pypy float-bytes: fix

fijal noreply at buildbot.pypy.org
Tue Mar 27 01:21:55 CEST 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: float-bytes
Changeset: r54015:46e174a843e3
Date: 2012-03-27 01:21 +0200
http://bitbucket.org/pypy/pypy/changeset/46e174a843e3/

Log:	fix

diff --git a/pypy/jit/backend/x86/regalloc.py b/pypy/jit/backend/x86/regalloc.py
--- a/pypy/jit/backend/x86/regalloc.py
+++ b/pypy/jit/backend/x86/regalloc.py
@@ -773,8 +773,9 @@
             self.Perform(op, [loc0], loc1)
             self.xrm.possibly_free_var(op.getarg(0))
         else:
-            loc0 = self.xrm.loc(op.getarg(0))
-            loc1 = self.xrm.force_allocate_reg(op.result)
+            arg0 = op.getarg(0)
+            loc0 = self.xrm.loc(arg0)
+            loc1 = self.xrm.force_allocate_reg(op.result, forbidden_vars=[arg0])
             self.Perform(op, [loc0], loc1)
             self.xrm.possibly_free_var(op.getarg(0))
 


More information about the pypy-commit mailing list