Author: Maciej Fijalkowski <[email protected]>
Branch:
Changeset: r79553:42727da17a95
Date: 2015-09-08 22:20 +0200
http://bitbucket.org/pypy/pypy/changeset/42727da17a95/
Log: well spotted amaury
diff --git a/rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py
b/rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py
--- a/rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py
+++ b/rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py
@@ -8767,12 +8767,14 @@
escape_n(ix)
jump(p0)
"""
- ops = """
- []
- escape_n(0)
- jump()
- """
- self.optimize_loop(ops, ops)
+ expected = """
+ [p0, p1, i2]
+ # XXX why is Const not a part of virtualstate???
+ guard_value(p1, ConstPtr(myarray)) []
+ escape_n(i2)
+ jump(p0, ConstPtr(myarray), 0)
+ """
+ self.optimize_loop(ops, expected)
class TestLLtype(OptimizeOptTest, LLtypeMixin):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit