[pypy-commit] pypy vecopt-merge: promoted value size added to expected trace (as a guard_value)

plan_rich noreply at buildbot.pypy.org
Wed Oct 14 10:54:17 EDT 2015


Author: Richard Plangger <planrichi at gmail.com>
Branch: vecopt-merge
Changeset: r80205:e8a7239d1430
Date: 2015-10-14 16:54 +0200
http://bitbucket.org/pypy/pypy/changeset/e8a7239d1430/

Log:	promoted value size added to expected trace (as a guard_value)

diff --git a/pypy/module/pypyjit/test_pypy_c/test_micronumpy.py b/pypy/module/pypyjit/test_pypy_c/test_micronumpy.py
--- a/pypy/module/pypyjit/test_pypy_c/test_micronumpy.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_micronumpy.py
@@ -129,7 +129,8 @@
             i28 = int_is_true(i27)
             guard_true(i28, descr=...)
             i29 = getfield_gc_pure_i(p6, descr=<FieldS pypy.module.micronumpy.descriptor.W_Dtype.inst_elsize \d+>)
-            i30 = int_add(i5, i29)
+            guard_value(i29, 8, descr=...)
+            i30 = int_add(i5, 8)
             i31 = getfield_gc_pure_i(p1, descr=<FieldS pypy.module.micronumpy.iterators.ArrayIter.inst_size \d+>)
             i32 = int_ge(i25, i31)
             guard_false(i32, descr=...)


More information about the pypy-commit mailing list