Author: Hakan Ardo <ha...@debian.org> Branch: jit-short_from_state Changeset: r46452:8a8304fc7ab6 Date: 2011-08-12 10:23 +0200 http://bitbucket.org/pypy/pypy/changeset/8a8304fc7ab6/
Log: slightly worse optimized now 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 @@ -115,16 +115,19 @@ # ---------------------- loop, = log.loops_by_filename(self.filepath) assert loop.match(""" + i8 = getfield_gc_pure(p5, descr=...) i9 = int_lt(i8, i7) guard_true(i9, descr=.*) guard_not_invalidated(descr=.*) - i11 = int_add(i8, 1) + i82 = getfield_gc_pure(p8, descr=...) + i11 = int_add_ovf(i82, 1) + guard_no_overflow(descr=...) i12 = force_token() --TICK-- p20 = new_with_vtable(ConstClass(W_IntObject)) setfield_gc(p20, i11, descr=<SignedFieldDescr.*W_IntObject.inst_intval .*>) setfield_gc(ConstPtr(ptr21), p20, descr=<GcPtrFieldDescr .*TypeCell.inst_w_value .*>) - jump(p0, p1, p2, p3, p4, p20, p6, i11, i7, descr=<Loop.>) + jump(p0, p1, p2, p3, p4, p20, p6, i7, p20, descr=<Loop.>) """) def test_oldstyle_newstyle_mix(self): 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 @@ -115,6 +115,7 @@ i21 = force_token() setfield_gc(p4, i20, descr=<.* .*W_AbstractSeqIterObject.inst_index .*>) guard_not_invalidated(descr=...) + i26 = int_sub(i9, 1) i23 = int_lt(i18, 0) guard_false(i23, descr=...) i25 = int_ge(i18, i9) 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 @@ -18,6 +18,8 @@ i14 = int_lt(i6, i9) guard_true(i14, descr=...) guard_not_invalidated(descr=...) + i16 = int_eq(i6, -9223372036854775808) + guard_false(i16, descr=...) i15 = int_mod(i6, i10) i17 = int_rshift(i15, 63) i18 = int_and(i10, i17) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit