[pypy-svn] r33935 - pypy/dist/pypy/jit/timeshifter

pedronis at codespeak.net pedronis at codespeak.net
Tue Oct 31 10:41:15 CET 2006


Author: pedronis
Date: Tue Oct 31 10:41:14 2006
New Revision: 33935

Modified:
   pypy/dist/pypy/jit/timeshifter/transform.py
Log:
(arre, pedronis)

sanity check that all global merge point hints are taken into account.



Modified: pypy/dist/pypy/jit/timeshifter/transform.py
==============================================================================
--- pypy/dist/pypy/jit/timeshifter/transform.py	(original)
+++ pypy/dist/pypy/jit/timeshifter/transform.py	Tue Oct 31 10:41:14 2006
@@ -90,6 +90,10 @@
                         cand += 1
             assert not hashint or cand==1, (
                 "ambigous global merge point hint: %r" % block)
+            for op in block.operations[1:-1]:
+                assert not (op.opname == 'hint' and
+                    op.args[1].value == {'global_merge_point': True}), (
+                    "stranded global merge point hint: %r" % block)
                 
         for block, links in entrymap.items():
             if len(links) > 1 and block is not self.graph.returnblock:



More information about the Pypy-commit mailing list