[pypy-commit] pypy small-unroll-improvements: gah, double not :-(
cfbolz
noreply at buildbot.pypy.org
Mon Apr 21 15:35:41 CEST 2014
Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: small-unroll-improvements
Changeset: r70809:3398c41c70bb
Date: 2014-04-21 15:35 +0200
http://bitbucket.org/pypy/pypy/changeset/3398c41c70bb/
Log: gah, double not :-(
just shows that unit tests for VArrayStructStateInfo.generate_guards
would really be cool
diff --git a/rpython/jit/metainterp/optimizeopt/virtualstate.py b/rpython/jit/metainterp/optimizeopt/virtualstate.py
--- a/rpython/jit/metainterp/optimizeopt/virtualstate.py
+++ b/rpython/jit/metainterp/optimizeopt/virtualstate.py
@@ -226,7 +226,7 @@
# XXX this needs a test in test_virtualstate!!!
if not isinstance(other, VArrayStructStateInfo):
raise VirtualStatesCantMatch("other is not an VArrayStructStateInfo")
- if not self.arraydescr is not other.arraydescr:
+ if self.arraydescr is not other.arraydescr:
raise VirtualStatesCantMatch("other is a different kind of array")
if len(self.fielddescrs) != len(other.fielddescrs):
diff --git a/rpython/jit/metainterp/test/test_dict.py b/rpython/jit/metainterp/test/test_dict.py
--- a/rpython/jit/metainterp/test/test_dict.py
+++ b/rpython/jit/metainterp/test/test_dict.py
@@ -355,7 +355,7 @@
n -= 1
return len(d)
self.meta_interp(f, [100])
- self.check_simple_loop(call_may_force=0, call=3)
+ self.check_simple_loop(call_may_force=0, call=0, new=0)
class TestLLtype(DictTests, LLJitMixin):
More information about the pypy-commit
mailing list