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

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


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

Log:	variable index unicodegetitem 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
@@ -5628,12 +5628,14 @@
         ops = """
         [p0, i0]
         i1 = unicodegetitem(p0, i0)
+        i10 = unicodegetitem(p0, i0)        
         i2 = int_lt(i1, 0)
         guard_false(i2) []
         jump(p0, i0)
         """
         expected = """
         [p0, i0]
+        i1 = unicodegetitem(p0, i0)        
         jump(p0, i0)
         """
         self.optimize_loop(ops, expected)


More information about the pypy-commit mailing list