[pypy-svn] pypy jit-short-preamble: Original failargs are not of interest as they well be replaced once the inlined guard is emitted

hakanardo commits-noreply at bitbucket.org
Fri Jan 21 23:05:52 CET 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: jit-short-preamble
Changeset: r41189:03fab077c9e5
Date: 2011-01-21 23:03 +0100
http://bitbucket.org/pypy/pypy/changeset/03fab077c9e5/

Log:	Original failargs are not of interest as they well be replaced once
	the inlined guard is emitted

diff --git a/pypy/jit/metainterp/optimizeopt/unroll.py b/pypy/jit/metainterp/optimizeopt/unroll.py
--- a/pypy/jit/metainterp/optimizeopt/unroll.py
+++ b/pypy/jit/metainterp/optimizeopt/unroll.py
@@ -189,6 +189,7 @@
                         op = op.clone()
                         #op.setfailargs(loop.preamble.inputargs)
                         #op.setjumptarget(loop.preamble.token)
+                        op.setfailargs(None)
                         op.setdescr(start_resumedescr.clone_if_mutable())
                         short[i] = op
 
@@ -373,10 +374,7 @@
         for box in preamble.inputargs:
             seen[box] = True
         for op in short_preamble:
-            args = op.getarglist()
-            if op.is_guard():
-                args = args + op.getfailargs()
-            for box in args:
+            for box in op.getarglist():
                 if isinstance(box, Const):
                     continue
                 if box not in seen:


More information about the Pypy-commit mailing list