[pypy-commit] pypy jit-short_from_state: variable index strgetitem nolong cached across loop boundaries

hakanardo noreply at buildbot.pypy.org
Thu Jul 21 20:55:44 CEST 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: jit-short_from_state
Changeset: r45839:aad66f8cf6be
Date: 2011-07-21 20:46 +0200
http://bitbucket.org/pypy/pypy/changeset/aad66f8cf6be/

Log:	variable index strgetitem nolong cached across loop boundaries

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
@@ -5610,6 +5610,7 @@
         ops = """
         [p0, i0]
         i1 = strgetitem(p0, i0)
+        i10 = strgetitem(p0, i0)
         i2 = int_lt(i1, 256)
         guard_true(i2) []
         i3 = int_ge(i1, 0)
@@ -5618,6 +5619,7 @@
         """
         expected = """
         [p0, i0]
+        i1 = strgetitem(p0, i0)
         jump(p0, i0)
         """
         self.optimize_loop(ops, expected)


More information about the pypy-commit mailing list