[pypy-svn] r63867 - pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp

arigo at codespeak.net arigo at codespeak.net
Wed Apr 8 19:31:56 CEST 2009


Author: arigo
Date: Wed Apr  8 19:31:53 2009
New Revision: 63867

Modified:
   pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/graphpage.py
Log:
Give a null weight to edges that are jumps back from loops.
Improves graph output if there is a JUMP to another loop.


Modified: pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/graphpage.py
==============================================================================
--- pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/graphpage.py	(original)
+++ pypy/branch/pyjitpl5-simplify/pypy/jit/metainterp/graphpage.py	Wed Apr  8 19:31:53 2009
@@ -155,7 +155,8 @@
         if tgt is not None and tgt in self.graphs:
             tgt_g = self.graphs.index(tgt)
             self.genedge((graphindex, opstartindex),
-                         (tgt_g, 0))
+                         (tgt_g, 0),
+                         weight="0")
         lines.append("")
         label = "\\l".join(lines)
         kwds = {}



More information about the Pypy-commit mailing list