[pypy-svn] r63772 - pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86
fijal at codespeak.net
fijal at codespeak.net
Tue Apr 7 07:22:02 CEST 2009
Author: fijal
Date: Tue Apr 7 07:22:00 2009
New Revision: 63772
Modified:
pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/regalloc.py
Log:
A bugfix. Exceptions are great
Modified: pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/regalloc.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/regalloc.py (original)
+++ pypy/branch/pyjitpl5-simplify/pypy/jit/backend/x86/regalloc.py Tue Apr 7 07:22:00 2009
@@ -327,8 +327,10 @@
if isinstance(arg, Box) and arg not in end:
end[arg] = i
if op.result:
- longevity[op.result] = (i, end[op.result])
- del end[op.result]
+ if op.result in end:
+ longevity[op.result] = (i, end[op.result])
+ del end[op.result]
+ # otherwise this var is never ever used
for v, e in end.items():
longevity[v] = (0, e)
guard.longevity = longevity
More information about the Pypy-commit
mailing list