[pypy-commit] pypy unroll-if-alt: Fix this test, now that the call is hoisted out of the loop.
alex_gaynor
noreply at buildbot.pypy.org
Tue Aug 2 00:00:20 CEST 2011
Author: Alex Gaynor <alex.gaynor at gmail.com>
Branch: unroll-if-alt
Changeset: r46172:636471d78cf4
Date: 2011-08-01 15:00 -0700
http://bitbucket.org/pypy/pypy/changeset/636471d78cf4/
Log: Fix this test, now that the call is hoisted out of the loop.
diff --git a/pypy/module/pypyjit/test_pypy_c/test_containers.py b/pypy/module/pypyjit/test_pypy_c/test_containers.py
--- a/pypy/module/pypyjit/test_pypy_c/test_containers.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_containers.py
@@ -40,10 +40,10 @@
log = self.run(fn, [1000])
assert log.result == 300
loop, = log.loops_by_filename(self.filepath)
- # check that the call to ll_dict_lookup is not a call_may_force
+ # check that the call to ll_dict_lookup is not a call_may_force, the
+ # gc_id call is hoisted out of the loop, the id of a value obviously
+ # can't change ;)
assert loop.match_by_id("getitem", """
- i25 = call(ConstClass(_ll_1_gc_identityhash__objectPtr), p6, descr=...)
- ...
i28 = call(ConstClass(ll_dict_lookup__dicttablePtr_objectPtr_Signed), p18, p6, i25, descr=...)
...
p33 = call(ConstClass(ll_get_value__dicttablePtr_Signed), p18, i28, descr=...)
More information about the pypy-commit
mailing list