[pypy-svn] r21854 - pypy/dist/pypy/translator

cfbolz at codespeak.net cfbolz at codespeak.net
Tue Jan 10 01:19:15 CET 2006


Author: cfbolz
Date: Tue Jan 10 01:19:14 2006
New Revision: 21854

Modified:
   pypy/dist/pypy/translator/simplify.py
Log:
huh? did this ever work?


Modified: pypy/dist/pypy/translator/simplify.py
==============================================================================
--- pypy/dist/pypy/translator/simplify.py	(original)
+++ pypy/dist/pypy/translator/simplify.py	Tue Jan 10 01:19:14 2006
@@ -11,6 +11,7 @@
 from pypy.objspace.flow.model import checkgraph, traverse, mkentrymap
 
 def get_graph(arg, translator):
+    from pypy.translator.translator import graphof
     if isinstance(arg, Variable):
         return None
     f = arg.value
@@ -22,8 +23,7 @@
         #external function calls don't have a real graph
         if getattr(callable, "suggested_primitive", False):
             return None
-        if callable in translator.flowgraphs:
-            return translator.flowgraphs[callable]
+        return graphof(translator, callable)
     except AttributeError, KeyError:
         pass
     try:



More information about the Pypy-commit mailing list