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

cfbolz at codespeak.net cfbolz at codespeak.net
Mon Oct 15 23:15:27 CEST 2007

Author: cfbolz
Date: Mon Oct 15 23:15:26 2007
New Revision: 47479

don't insert keepalives any more when inlining. it's no longer necessary and
produces more gc pointers around, which is bad for the framework GCs.

Modified: pypy/dist/pypy/translator/backendopt/inline.py
--- pypy/dist/pypy/translator/backendopt/inline.py	(original)
+++ pypy/dist/pypy/translator/backendopt/inline.py	Mon Oct 15 23:15:26 2007
@@ -14,6 +14,7 @@
 from pypy.tool.algo import sparsemat
 from pypy.translator.backendopt import removenoops
 from pypy.translator.backendopt.support import log, split_block_with_keepalive
+from pypy.translator.unsimplify import split_block
 from pypy.translator.backendopt.support import find_backedges, find_loop_blocks
 from pypy.translator.backendopt.canraise import RaiseAnalyzer
@@ -440,7 +441,7 @@
         copiedexceptblock.operations += self.generate_keepalive(linkargs)
     def do_inline(self, block, index_operation):
-        splitlink = split_block_with_keepalive(block, index_operation)
+        splitlink = split_block(None, block, index_operation)
         afterblock = splitlink.target
         # these variables have to be passed along all the links in the inlined
         # graph because the original function needs them in the blocks after

More information about the Pypy-commit mailing list