[pypy-svn] r42367 - pypy/dist/pypy/translator/backendopt

antocuni at codespeak.net antocuni at codespeak.net
Fri Apr 27 11:02:00 CEST 2007


Author: antocuni
Date: Fri Apr 27 11:02:00 2007
New Revision: 42367

Modified:
   pypy/dist/pypy/translator/backendopt/all.py
Log:
insert a sanity check also here, else a lot of tests calling
backendopts directly would fail.



Modified: pypy/dist/pypy/translator/backendopt/all.py
==============================================================================
--- pypy/dist/pypy/translator/backendopt/all.py	(original)
+++ pypy/dist/pypy/translator/backendopt/all.py	Fri Apr 27 11:02:00 2007
@@ -127,7 +127,8 @@
         print "after if-to-switch:"
         print_statistics(translator.graphs[0], translator)
 
-    if config.stack_optimization:
+    # XXX: it's not nice to have the backend hard-coded here
+    if config.stack_optimization and translator.config.translation.backend == 'cli':
         for graph in graphs:
             SSI_to_SSA(graph)
             build_trees(graph)



More information about the Pypy-commit mailing list