[pypy-commit] pypy default: argh, I'm stupid, use the correct API

fijal noreply at buildbot.pypy.org
Tue Jan 10 11:24:41 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r51192:e6f379da6e7c
Date: 2012-01-10 12:24 +0200
http://bitbucket.org/pypy/pypy/changeset/e6f379da6e7c/

Log:	argh, I'm stupid, use the correct API

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
@@ -741,7 +741,7 @@
         self.xrm.possibly_free_var(op.getarg(0))
 
     def consider_cast_int_to_float(self, op):
-        loc0 = self.rm.force_allocate_reg(op.getarg(0))
+        loc0 = self.rm.make_sure_var_in_reg(op.getarg(0))
         loc1 = self.xrm.force_allocate_reg(op.result)
         self.Perform(op, [loc0], loc1)
         self.rm.possibly_free_var(op.getarg(0))


More information about the pypy-commit mailing list