[pypy-commit] pypy jit-multilabel: not needed since the hack adding ops at the begining of newoperations was removed

hakanardo noreply at buildbot.pypy.org
Sat Dec 17 16:21:40 CET 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: jit-multilabel
Changeset: r50623:1dfa4f95ba02
Date: 2011-12-17 15:34 +0100
http://bitbucket.org/pypy/pypy/changeset/1dfa4f95ba02/

Log:	not needed since the hack adding ops at the begining of
	newoperations was removed

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
@@ -222,7 +222,7 @@
         self.optimizer.emitting_dissabled = False
 
     def close_bridge(self, start_label):
-        inputargs = self.inputargs        
+        inputargs = self.inputargs
         short_jumpargs = inputargs[:]
 
         # We dont need to inline the short preamble we are creating as we are conneting
@@ -232,8 +232,6 @@
         newoperations = self.optimizer.get_newoperations()
         self.boxes_created_this_iteration = {}
         i = 0
-        while newoperations[i].getopnum() != rop.LABEL:
-            i += 1
         while i < len(newoperations):
             op = newoperations[i]
             self.boxes_created_this_iteration[op.result] = True
@@ -279,8 +277,6 @@
         newoperations = self.optimizer.get_newoperations()
         self.boxes_created_this_iteration = {}
         i = j = 0
-        while newoperations[i].getopnum() != rop.LABEL:
-            i += 1
         while i < len(newoperations) or j < len(jumpargs):
             if i == len(newoperations):
                 while j < len(jumpargs):


More information about the pypy-commit mailing list