Author: Hakan Ardo <[email protected]>
Branch: 
Changeset: r54963:08a6c67075dc
Date: 2012-05-08 17:29 +0200
http://bitbucket.org/pypy/pypy/changeset/08a6c67075dc/

Log:    This way we dont need to duplicate optimize_MARK_OPAQUE_PTR

diff --git a/pypy/jit/metainterp/optimizeopt/earlyforce.py 
b/pypy/jit/metainterp/optimizeopt/earlyforce.py
--- a/pypy/jit/metainterp/optimizeopt/earlyforce.py
+++ b/pypy/jit/metainterp/optimizeopt/earlyforce.py
@@ -8,7 +8,8 @@
         if (opnum != rop.SETFIELD_GC and 
             opnum != rop.SETARRAYITEM_GC and
             opnum != rop.QUASIIMMUT_FIELD and
-            opnum != rop.SAME_AS):
+            opnum != rop.SAME_AS and
+            opnum != rop.MARK_OPAQUE_PTR):
                
             for arg in op.getarglist():
                 if arg in self.optimizer.values:
diff --git a/pypy/jit/metainterp/optimizeopt/rewrite.py 
b/pypy/jit/metainterp/optimizeopt/rewrite.py
--- a/pypy/jit/metainterp/optimizeopt/rewrite.py
+++ b/pypy/jit/metainterp/optimizeopt/rewrite.py
@@ -481,10 +481,6 @@
                                         args = [op.getarg(0), 
ConstInt(highest_bit(val))])
         self.emit_operation(op)
 
-    def optimize_MARK_OPAQUE_PTR(self, op):
-        value = self.getvalue(op.getarg(0))
-        self.optimizer.opaque_pointers[value] = True
-
     def optimize_CAST_PTR_TO_INT(self, op):
         self.pure(rop.CAST_INT_TO_PTR, [op.result], op.getarg(0))
         self.emit_operation(op)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to