[pypy-commit] pypy default: This is a spooky check (other people enforce that inputargs are unique anyway)

fijal noreply at buildbot.pypy.org
Wed Dec 31 08:14:03 CET 2014


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r75186:764546158178
Date: 2014-12-31 09:13 +0200
http://bitbucket.org/pypy/pypy/changeset/764546158178/

Log:	This is a spooky check (other people enforce that inputargs are
	unique anyway)

diff --git a/rpython/jit/metainterp/optimizeopt/unroll.py b/rpython/jit/metainterp/optimizeopt/unroll.py
--- a/rpython/jit/metainterp/optimizeopt/unroll.py
+++ b/rpython/jit/metainterp/optimizeopt/unroll.py
@@ -234,11 +234,7 @@
         self.short_boxes = exported_state.short_boxes
         self.initial_virtual_state = target_token.virtual_state
 
-        seen = {}
         for box in self.inputargs:
-            if box in seen:
-                continue
-            seen[box] = None
             preamble_value = exported_state.exported_values[box]
             value = self.optimizer.getvalue(box)
             value.import_from(preamble_value, self.optimizer)


More information about the pypy-commit mailing list