Debian Codegraph @

rpython/jit/metainterp/test/test_loop_unroll_disopt.py

raw symbols SCIP
1 import py
2 from rpython.rlib.jit import JitDriver
3 from rpython.jit.metainterp.test import test_loop
4 from rpython.jit.metainterp.test.support import LLJitMixin
5 from rpython.jit.metainterp.optimizeopt import ALL_OPTS_NAMES
6
7 allopts = ALL_OPTS_NAMES.split(':')
8 del allopts[allopts.index('unroll')]
9 for optnum in range(len(allopts)):
10 myopts = allopts[:]
11 del myopts[optnum]
12
13 class TestLLtype(test_loop.LoopTest, LLJitMixin):
14 enable_opts = ':'.join(myopts)
15
16 def check_resops(self, *args, **kwargs):
17 pass
18 def check_trace_count(self, count):
19 pass
20
21 opt = allopts[optnum]
22 exec("TestLoopNo%sLLtype = TestLLtype" % (opt[0].upper() + opt[1:]))
23
24 del TestLLtype # No need to run the last set twice
25 #del TestLoopNoUnrollLLtype # This case is take care of by test_loop
26