[pypy-commit] pypy default: In case the variable is already spilled and not

Armin Rigo noreply at buildbot.pypy.org
Thu Jun 2 10:57:45 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r44639:97cf8913ccef
Date: 2011-06-02 11:11 +0200
http://bitbucket.org/pypy/pypy/changeset/97cf8913ccef/

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
@@ -220,10 +220,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