[pypy-svn] r46005 - pypy/branch/pypy-more-rtti-inprogress/translator/backendopt/test

fijal at codespeak.net fijal at codespeak.net
Mon Aug 27 10:26:29 CEST 2007


Author: fijal
Date: Mon Aug 27 10:26:28 2007
New Revision: 46005

Modified:
   pypy/branch/pypy-more-rtti-inprogress/translator/backendopt/test/test_canraise.py
Log:
Insert backendopts here, as direct_call is a direct_call to helper


Modified: pypy/branch/pypy-more-rtti-inprogress/translator/backendopt/test/test_canraise.py
==============================================================================
--- pypy/branch/pypy-more-rtti-inprogress/translator/backendopt/test/test_canraise.py	(original)
+++ pypy/branch/pypy-more-rtti-inprogress/translator/backendopt/test/test_canraise.py	Mon Aug 27 10:26:28 2007
@@ -1,5 +1,6 @@
 from pypy.translator.translator import TranslationContext, graphof
 from pypy.translator.backendopt.canraise import RaiseAnalyzer
+from pypy.translator.backendopt.all import backend_optimizations
 from pypy.conftest import option
 
 def translate(func, sig):
@@ -72,7 +73,7 @@
         return z(x)
     t, ra = translate(f, [int])
     fgraph = graphof(t, f)
-
+    backend_optimizations(t)
     assert fgraph.startblock.operations[0].opname == 'direct_call'
 
     result = ra.can_raise(fgraph.startblock.operations[0])



More information about the Pypy-commit mailing list