[pypy-commit] pypy vecopt-merge: guard test fixed
plan_rich
noreply at buildbot.pypy.org
Mon Oct 12 20:33:12 CEST 2015
Author: Richard Plangger <planrichi at gmail.com>
Branch: vecopt-merge
Changeset: r80146:10c0ffe213cd
Date: 2015-10-12 18:11 +0200
http://bitbucket.org/pypy/pypy/changeset/10c0ffe213cd/
Log: guard test fixed
diff --git a/rpython/jit/metainterp/optimizeopt/test/test_guard.py b/rpython/jit/metainterp/optimizeopt/test/test_guard.py
--- a/rpython/jit/metainterp/optimizeopt/test/test_guard.py
+++ b/rpython/jit/metainterp/optimizeopt/test/test_guard.py
@@ -107,7 +107,7 @@
def __repr__(self):
return '*'
from rpython.jit.tool.oparser import OpParser, default_fail_descr
- parser = OpParser(instr, self.cpu, self.namespace, 'lltype', None, default_fail_descr, False, None)
+ parser = OpParser(instr, self.cpu, self.namespace, None, default_fail_descr, True, None)
parser.vars = { arg.repr_short(arg._repr_memo) : arg for arg in loop.inputargs}
operations = []
last_glob = None
@@ -164,16 +164,16 @@
loop1 = self.parse_trace("""
i10 = int_lt(i1, 42)
guard_true(i10) []
- i11 = int_add(i1, 1)
- i12 = int_lt(i11, 42)
- guard_true(i12) []
+ i101 = int_add(i1, 1)
+ i102 = int_lt(i101, 42)
+ guard_true(i102) []
""")
opt = self.optguards(loop1)
self.assert_guard_count(loop1, 1)
self.assert_contains_sequence(loop1, """
...
- i11 = int_add(i1, 1)
- i12 = int_lt(i11, 42)
+ i101 = int_add(i1, 1)
+ i12 = int_lt(i101, 42)
guard_true(i12) []
...
""")
@@ -182,16 +182,16 @@
loop1 = self.parse_trace("""
i10 = int_gt(i1, 42)
guard_true(i10) []
- i11 = int_sub(i1, 1)
- i12 = int_gt(i11, 42)
+ i101 = int_sub(i1, 1)
+ i12 = int_gt(i101, 42)
guard_true(i12) []
""")
opt = self.optguards(loop1)
self.assert_guard_count(loop1, 1)
self.assert_contains_sequence(loop1, """
...
- i11 = int_sub(i1, 1)
- i12 = int_gt(i11, 42)
+ i101 = int_sub(i1, 1)
+ i12 = int_gt(i101, 42)
guard_true(i12) []
...
""")
@@ -209,8 +209,8 @@
self.assert_guard_count(loop1, 1)
self.assert_contains_sequence(loop1, """
...
- i11 = int_mul(i1, 4)
- i12 = int_add(i11, 1)
+ i101 = int_mul(i1, 4)
+ i12 = int_add(i101, 1)
i13 = int_lt(i12, 42)
guard_true(i13) []
...
@@ -323,8 +323,8 @@
self.assert_guard_count(loop1, 2)
self.assert_contains_sequence(loop1, """
...
- i10 = int_ge(42, i2)
- guard_true(i10) []
+ i100 = int_ge(42, i2)
+ guard_true(i100) []
...
i40 = int_gt(i1, 42)
guard_true(i40) []
More information about the pypy-commit
mailing list