[pypy-commit] pypy default: there are assert that say "this must be in reg". Force it

fijal noreply at buildbot.pypy.org
Sun Jan 8 13:13:09 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r51132:882458b48b05
Date: 2012-01-08 14:12 +0200
http://bitbucket.org/pypy/pypy/changeset/882458b48b05/

Log:	there are assert that say "this must be in reg". Force it

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.loc(op.getarg(0))
+        loc0 = self.rm.force_allocate_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