Author: Alex Gaynor <[email protected]>
Branch: python-loop-unroll
Changeset: r65464:0bc2dc5a3bf7
Date: 2013-07-18 10:53 -0700
http://bitbucket.org/pypy/pypy/changeset/0bc2dc5a3bf7/
Log: the part of this test where it does the thing
diff --git a/pypy/module/pypyjit/test_pypy_c/test_misc.py
b/pypy/module/pypyjit/test_pypy_c/test_misc.py
--- a/pypy/module/pypyjit/test_pypy_c/test_misc.py
+++ b/pypy/module/pypyjit/test_pypy_c/test_misc.py
@@ -411,6 +411,8 @@
def test_explicit_loop_unrolling(self):
def main(n):
+ from __pypy__ import unroll_loop
+
class A(object):
def __init__(self):
self.a = 0
@@ -419,7 +421,7 @@
i = 0
while i < n:
a = A()
- for attr in ["a", "b"]:
+ for attr in unroll_loop(["a", "b"]):
setattr(a, attr, getattr(a, attr) + 1)
i += a.b
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit