[pypy-svn] r65218 - pypy/branch/pyjitpl5/pypy/jit/metainterp
arigo at codespeak.net
arigo at codespeak.net
Mon May 11 18:07:00 CEST 2009
Author: arigo
Date: Mon May 11 18:06:59 2009
New Revision: 65218
Modified:
pypy/branch/pyjitpl5/pypy/jit/metainterp/optimize.py
Log:
Fix optimize.py to call getnode() on all arguments,
just to make sure the nodes are created.
Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/optimize.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/optimize.py (original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/optimize.py Mon May 11 18:06:59 2009
@@ -394,10 +394,11 @@
instnode.allfields = op.vdesc.fields
continue
elif op.is_always_pure():
+ is_pure = True
for arg in op.args:
if not self.getnode(arg).const:
- break
- else:
+ is_pure = False
+ if is_pure:
box = op.result
assert box is not None
self.nodes[box] = InstanceNode(box.constbox(),
More information about the Pypy-commit
mailing list