Author: Maciej Fijalkowski <[email protected]>
Branch: 
Changeset: r79580:5ca0a226a702
Date: 2015-09-10 09:59 +0200
http://bitbucket.org/pypy/pypy/changeset/5ca0a226a702/

Log:    fix, really? is this it?

diff --git a/rpython/jit/metainterp/optimizeopt/info.py 
b/rpython/jit/metainterp/optimizeopt/info.py
--- a/rpython/jit/metainterp/optimizeopt/info.py
+++ b/rpython/jit/metainterp/optimizeopt/info.py
@@ -447,7 +447,8 @@
     def _visitor_walk_recursive(self, op, visitor, optimizer):
         source_op = optimizer.get_box_replacement(op.getarg(0))
         visitor.register_virtual_fields(op, [source_op])
-        self.parent.visitor_walk_recursive(source_op, visitor, optimizer)
+        if self.parent.is_virtual():
+            self.parent.visitor_walk_recursive(source_op, visitor, optimizer)
 
     @specialize.argtype(1)
     def visitor_dispatch_virtual_type(self, visitor):
diff --git a/rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py 
b/rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py
--- a/rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py
+++ b/rpython/jit/metainterp/optimizeopt/test/test_optimizeopt.py
@@ -8818,11 +8818,10 @@
         expected = """
         [i0]
         i = call_i('malloc', 10, descr=raw_malloc_descr)
-        is = int_add(i, 8)
         escape_n(i)
         i1 = int_add(i0, 1)
         i2 = int_lt(i1, 100)
-        guard_true(i2) [is]
+        guard_true(i2) [i]
         call_n('free', i, descr=raw_free_descr)
         jump(i1)
         """
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to