[pypy-commit] pypy default: can we realy delay the setarrayitem_gc here?
hakanardo
noreply at buildbot.pypy.org
Thu Sep 29 20:07:46 CEST 2011
Author: Hakan Ardo <hakan at debian.org>
Branch:
Changeset: r47689:c89bdbc924cb
Date: 2011-09-29 20:07 +0200
http://bitbucket.org/pypy/pypy/changeset/c89bdbc924cb/
Log: can we realy delay the setarrayitem_gc here?
diff --git a/pypy/jit/metainterp/optimizeopt/test/test_optimizeopt.py b/pypy/jit/metainterp/optimizeopt/test/test_optimizeopt.py
--- a/pypy/jit/metainterp/optimizeopt/test/test_optimizeopt.py
+++ b/pypy/jit/metainterp/optimizeopt/test/test_optimizeopt.py
@@ -7220,6 +7220,16 @@
"""
self.optimize_loop(ops, expected)
+ def test_setarrayitem_followed_by_arraycopy(self):
+ ops = """
+ [p1, p2]
+ setarrayitem_gc(p1, 2, 10, descr=arraydescr)
+ setarrayitem_gc(p2, 2, 13, descr=arraydescr)
+ call(0, p1, p2, 0, 0, 10, descr=arraycopydescr)
+ jump(p1, p2)
+ """
+ self.optimize_loop(ops, ops)
+
class TestLLtype(OptimizeOptTest, LLtypeMixin):
pass
More information about the pypy-commit
mailing list