Author: Hakan Ardo <[email protected]>
Branch: jit-targets
Changeset: r50403:073665c57a62
Date: 2011-12-12 08:52 +0100
http://bitbucket.org/pypy/pypy/changeset/073665c57a62/

Log:    Retracing does not fail in the same set of situations as before. In
        test_getattr_promote we previously got an retrace that was never
        used. Now it is not even passed to the backend

diff --git a/pypy/module/pypyjit/test_pypy_c/test_misc.py 
b/pypy/module/pypyjit/test_pypy_c/test_misc.py
--- a/pypy/module/pypyjit/test_pypy_c/test_misc.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_misc.py
@@ -34,7 +34,10 @@
             jump(p0, p1, p2, p3, p4, p5, i13, i11, i8, descr=...)
         """
         assert loop0.match(expected)
-        assert loop1.match(expected)
+        # XXX: The retracing fails to form a loop since j
+        # becomes constant 0 after the bridge and constant 1 at the end of the
+        # loop. A bridge back to the peramble is produced instead.        
+        #assert loop1.match(expected)
 
     def test_factorial(self):
         def fact(n):
diff --git a/pypy/module/pypyjit/test_pypy_c/test_string.py 
b/pypy/module/pypyjit/test_pypy_c/test_string.py
--- a/pypy/module/pypyjit/test_pypy_c/test_string.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_string.py
@@ -179,7 +179,7 @@
         log = self.run(main, [1000])
         assert log.result == main(1000)
         loops = log.loops_by_filename(self.filepath)
-        assert len(loops) == 2
+        assert len(loops) == 1
         for loop in loops:
             loop.match_by_id('getattr','''
             guard_not_invalidated(descr=...)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to