[pypy-svn] pypy default: kill this assert, it is useless
antocuni
commits-noreply at bitbucket.org
Mon Mar 21 14:31:12 CET 2011
Author: Antonio Cuni <anto.cuni at gmail.com>
Branch:
Changeset: r42812:3b871a5ccb25
Date: 2011-03-18 15:50 +0100
http://bitbucket.org/pypy/pypy/changeset/3b871a5ccb25/
Log: kill this assert, it is useless
diff --git a/pypy/module/pypyjit/test_pypy_c/test_pypy_c_new.py b/pypy/module/pypyjit/test_pypy_c/test_pypy_c_new.py
--- a/pypy/module/pypyjit/test_pypy_c/test_pypy_c_new.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_pypy_c_new.py
@@ -980,7 +980,6 @@
while i < 640 * 480:
assert len(img) == 3*350*480
assert len(intimg) == 640*480
- assert i >= 0
l = l + img[i]
intimg[i] = (intimg[i-640] + l)
i += 1
@@ -992,12 +991,12 @@
assert loop.match("""
i13 = int_lt(i8, 307200)
guard_true(i13, descr=<Guard3>)
- # the bound check guard on img has been killed (thanks to the 1st and 2nd asserts)
+ # the bound check guard on img has been killed (thanks to the asserts)
i14 = getarrayitem_raw(i10, i8, descr=<.*ArrayNoLengthDescr>)
i15 = int_add_ovf(i9, i14)
guard_no_overflow(descr=<Guard4>)
i17 = int_sub(i8, 640)
- # the bound check guard on intimg has been killed (thanks to the 3rd assert)
+ # the bound check guard on intimg has been killed (thanks to the asserts)
i18 = getarrayitem_raw(i11, i17, descr=<.*ArrayNoLengthDescr>)
i19 = int_add_ovf(i18, i15)
guard_no_overflow(descr=<Guard5>)
More information about the Pypy-commit
mailing list