[pypy-commit] pypy jit-multilabel: ShortBoxes is no longer mutated after it is crated so there is no point in cloning it anymore

hakanardo noreply at buildbot.pypy.org
Tue Dec 13 09:18:28 CET 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: jit-multilabel
Changeset: r50458:fb0f3b8c369a
Date: 2011-12-13 09:14 +0100
http://bitbucket.org/pypy/pypy/changeset/fb0f3b8c369a/

Log:	ShortBoxes is no longer mutated after it is crated so there is no
	point in cloning it anymore

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
@@ -179,7 +179,7 @@
         
         self.short = target_token.short_preamble[:]
         self.short_seen = {}
-        self.short_boxes = exported_state.short_boxes.clone()
+        self.short_boxes = exported_state.short_boxes
         self.imported_state = exported_state
         self.inputargs = targetop.getarglist()
         self.initial_virtual_state = target_token.virtual_state
diff --git a/pypy/jit/metainterp/optimizeopt/virtualstate.py b/pypy/jit/metainterp/optimizeopt/virtualstate.py
--- a/pypy/jit/metainterp/optimizeopt/virtualstate.py
+++ b/pypy/jit/metainterp/optimizeopt/virtualstate.py
@@ -580,12 +580,6 @@
                 except BoxNotProducable:
                     pass
 
-    def clone(self):
-        sb = ShortBoxes(self.optimizer, None)
-        sb.short_boxes = {}
-        sb.short_boxes.update(self.short_boxes)
-        return sb
-
     def prioritized_alternatives(self, box):
         if box not in self.alternatives:
             return [self.potential_ops[box]]


More information about the pypy-commit mailing list