[pypy-commit] pypy arm-backed-float: In case the variable is already spilled and not

Armin Rigo noreply at buildbot.pypy.org
Thu Jun 2 11:47:10 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: arm-backed-float
Changeset: r44649:592729574236
Date: 2011-06-02 11:11 +0200
http://bitbucket.org/pypy/pypy/changeset/592729574236/

Log:	In case the variable is already spilled and not living in any
	register, do nothing.

diff --git a/pypy/jit/backend/llsupport/regalloc.py b/pypy/jit/backend/llsupport/regalloc.py
--- a/pypy/jit/backend/llsupport/regalloc.py
+++ b/pypy/jit/backend/llsupport/regalloc.py
@@ -233,10 +233,7 @@
             del self.reg_bindings[var]
             self.free_regs.append(loc)
         except KeyError:
-            if not we_are_translated():
-                import pdb; pdb.set_trace()
-            else:
-                raise ValueError
+            pass   # 'var' is already not in a register
 
     def loc(self, box):
         """ Return the location of 'box'.


More information about the pypy-commit mailing list