[pypy-commit] pypy default: Fix a test I broke, by better optimizing things :)

alex_gaynor noreply at buildbot.pypy.org
Fri Sep 2 17:21:32 CEST 2011


Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: 
Changeset: r47028:43ff84065e19
Date: 2011-09-02 11:21 -0400
http://bitbucket.org/pypy/pypy/changeset/43ff84065e19/

Log:	Fix a test I broke, by better optimizing things :)

diff --git a/pypy/module/pypyjit/test_pypy_c/test_instance.py b/pypy/module/pypyjit/test_pypy_c/test_instance.py
--- a/pypy/module/pypyjit/test_pypy_c/test_instance.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_instance.py
@@ -181,8 +181,7 @@
         assert loop.match_by_id("contains", """
             guard_not_invalidated(descr=...)
             i11 = force_token()
-            i12 = int_add_ovf(i5, i7)
-            guard_no_overflow(descr=...)
+            i12 = int_add(i5, 1)
         """)
 
     def test_id_compare_optimization(self):


More information about the pypy-commit mailing list