[pypy-commit] pypy jit-leaner-frontend: adapting the test interface for test_vecopt
plan_rich
pypy.commits at gmail.com
Fri Mar 25 07:12:04 EDT 2016
Author: Richard Plangger <planrichi at gmail.com>
Branch: jit-leaner-frontend
Changeset: r83342:5e609847041f
Date: 2016-03-22 17:09 +0100
http://bitbucket.org/pypy/pypy/changeset/5e609847041f/
Log: adapting the test interface for test_vecopt
diff --git a/rpython/jit/metainterp/optimizeopt/test/test_vecopt.py b/rpython/jit/metainterp/optimizeopt/test/test_vecopt.py
--- a/rpython/jit/metainterp/optimizeopt/test/test_vecopt.py
+++ b/rpython/jit/metainterp/optimizeopt/test/test_vecopt.py
@@ -81,7 +81,9 @@
jitdriver_sd = FakeJitDriverStaticData()
def assert_vectorize(self, loop, expected_loop, call_pure_results=None):
- trace = convert_loop_to_trace(loop)
+ jump = ResOperation(rop.LABEL, loop.jump.getarglist(), loop.jump.getdescr())
+ trace = Trace(loop.label, jump, loop.operations)
+ trace = self.convert_loop_to_packed(loop)
compile_data = compile.LoopCompileData(trace, loop.jump.getarglist())
state = self._do_optimize_loop(compile_data)
loop.label = state[0].label_op
More information about the pypy-commit
mailing list