[pypy-commit] pypy jit-targets: The jumpop is not always among those selected
hakanardo
noreply at buildbot.pypy.org
Sun Dec 4 12:53:57 CET 2011
Author: Hakan Ardo <hakan at debian.org>
Branch: jit-targets
Changeset: r50109:ecb2ebdb7e57
Date: 2011-12-04 12:25 +0100
http://bitbucket.org/pypy/pypy/changeset/ecb2ebdb7e57/
Log: The jumpop is not always among those selected
diff --git a/pypy/module/pypyjit/test_pypy_c/model.py b/pypy/module/pypyjit/test_pypy_c/model.py
--- a/pypy/module/pypyjit/test_pypy_c/model.py
+++ b/pypy/module/pypyjit/test_pypy_c/model.py
@@ -201,7 +201,7 @@
def simple_loop_ops(self, *args, **kwds):
ops = list(self._allops(*args, **kwds))
labels = [op for op in ops if op.name == 'label']
- jumpop = ops[-1]
+ jumpop = self.chunks[-1].operations[-1]
assert jumpop.name == 'jump'
assert jumpop.getdescr() == labels[-1].getdescr()
i = ops.index(labels[-1])
More information about the pypy-commit
mailing list